org.graylog2.rest.models.system.buffers.responses.AutoValue_RingSummary Maven / Gradle / Ivy
package org.graylog2.rest.models.system.buffers.responses;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RingSummary extends RingSummary {
private final SingleRingUtilization input;
private final SingleRingUtilization output;
AutoValue_RingSummary(
SingleRingUtilization input,
@Nullable SingleRingUtilization output) {
if (input == null) {
throw new NullPointerException("Null input");
}
this.input = input;
this.output = output;
}
@JsonProperty
@Override
public SingleRingUtilization input() {
return input;
}
@JsonProperty
@Nullable
@Override
public SingleRingUtilization output() {
return output;
}
@Override
public String toString() {
return "RingSummary{"
+ "input=" + input + ", "
+ "output=" + output
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RingSummary) {
RingSummary that = (RingSummary) o;
return (this.input.equals(that.input()))
&& ((this.output == null) ? (that.output() == null) : this.output.equals(that.output()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.input.hashCode();
h *= 1000003;
h ^= (output == null) ? 0 : this.output.hashCode();
return h;
}
}