All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog2.system.traffic.AutoValue_TrafficCounterService_TrafficHistogram Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version

package org.graylog2.system.traffic;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.Generated;
import org.joda.time.DateTime;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_TrafficCounterService_TrafficHistogram extends TrafficCounterService.TrafficHistogram {

  private final DateTime from;
  private final DateTime to;
  private final Map input;
  private final Map output;
  private final Map decoded;

  AutoValue_TrafficCounterService_TrafficHistogram(
      DateTime from,
      DateTime to,
      Map input,
      Map output,
      Map decoded) {
    if (from == null) {
      throw new NullPointerException("Null from");
    }
    this.from = from;
    if (to == null) {
      throw new NullPointerException("Null to");
    }
    this.to = to;
    if (input == null) {
      throw new NullPointerException("Null input");
    }
    this.input = input;
    if (output == null) {
      throw new NullPointerException("Null output");
    }
    this.output = output;
    if (decoded == null) {
      throw new NullPointerException("Null decoded");
    }
    this.decoded = decoded;
  }

  @JsonProperty
  @Override
  public DateTime from() {
    return from;
  }

  @JsonProperty
  @Override
  public DateTime to() {
    return to;
  }

  @JsonProperty
  @Override
  public Map input() {
    return input;
  }

  @JsonProperty
  @Override
  public Map output() {
    return output;
  }

  @JsonProperty
  @Override
  public Map decoded() {
    return decoded;
  }

  @Override
  public String toString() {
    return "TrafficHistogram{"
        + "from=" + from + ", "
        + "to=" + to + ", "
        + "input=" + input + ", "
        + "output=" + output + ", "
        + "decoded=" + decoded
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TrafficCounterService.TrafficHistogram) {
      TrafficCounterService.TrafficHistogram that = (TrafficCounterService.TrafficHistogram) o;
      return (this.from.equals(that.from()))
           && (this.to.equals(that.to()))
           && (this.input.equals(that.input()))
           && (this.output.equals(that.output()))
           && (this.decoded.equals(that.decoded()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.from.hashCode();
    h *= 1000003;
    h ^= this.to.hashCode();
    h *= 1000003;
    h ^= this.input.hashCode();
    h *= 1000003;
    h ^= this.output.hashCode();
    h *= 1000003;
    h ^= this.decoded.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy