org.graylog2.system.traffic.AutoValue_TrafficCounterService_TrafficHistogram Maven / Gradle / Ivy
package org.graylog2.system.traffic;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.processing.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$ ^= from.hashCode();
h$ *= 1000003;
h$ ^= to.hashCode();
h$ *= 1000003;
h$ ^= input.hashCode();
h$ *= 1000003;
h$ ^= output.hashCode();
h$ *= 1000003;
h$ ^= decoded.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy