org.graylog2.indexer.cluster.health.AutoValue_AbsoluteValueWatermarkSettings Maven / Gradle / Ivy
package org.graylog2.indexer.cluster.health;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AbsoluteValueWatermarkSettings extends AbsoluteValueWatermarkSettings {
private final WatermarkSettings.SettingsType type;
private final ByteSize low;
private final ByteSize high;
@Nullable
private final ByteSize floodStage;
AutoValue_AbsoluteValueWatermarkSettings(
WatermarkSettings.SettingsType type,
ByteSize low,
ByteSize high,
@Nullable ByteSize floodStage) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (low == null) {
throw new NullPointerException("Null low");
}
this.low = low;
if (high == null) {
throw new NullPointerException("Null high");
}
this.high = high;
this.floodStage = floodStage;
}
@Override
public WatermarkSettings.SettingsType type() {
return type;
}
@Override
public ByteSize low() {
return low;
}
@Override
public ByteSize high() {
return high;
}
@Nullable
@Override
public ByteSize floodStage() {
return floodStage;
}
@Override
public String toString() {
return "AbsoluteValueWatermarkSettings{"
+ "type=" + type + ", "
+ "low=" + low + ", "
+ "high=" + high + ", "
+ "floodStage=" + floodStage
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AbsoluteValueWatermarkSettings) {
AbsoluteValueWatermarkSettings that = (AbsoluteValueWatermarkSettings) o;
return this.type.equals(that.type())
&& this.low.equals(that.low())
&& this.high.equals(that.high())
&& (this.floodStage == null ? that.floodStage() == null : this.floodStage.equals(that.floodStage()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= low.hashCode();
h$ *= 1000003;
h$ ^= high.hashCode();
h$ *= 1000003;
h$ ^= (floodStage == null) ? 0 : floodStage.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy