org.graylog2.indexer.cluster.health.AutoValue_PercentageWatermarkSettings Maven / Gradle / Ivy
package org.graylog2.indexer.cluster.health;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PercentageWatermarkSettings extends PercentageWatermarkSettings {
private final WatermarkSettings.SettingsType type;
private final Double low;
private final Double high;
private final Double floodStage;
AutoValue_PercentageWatermarkSettings(
WatermarkSettings.SettingsType type,
Double low,
Double high,
@Nullable Double 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 Double low() {
return low;
}
@Override
public Double high() {
return high;
}
@Nullable
@Override
public Double floodStage() {
return floodStage;
}
@Override
public String toString() {
return "PercentageWatermarkSettings{"
+ "type=" + type + ", "
+ "low=" + low + ", "
+ "high=" + high + ", "
+ "floodStage=" + floodStage
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PercentageWatermarkSettings) {
PercentageWatermarkSettings that = (PercentageWatermarkSettings) 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$;
}
}