org.graylog2.indexer.cluster.health.AutoValue_AbsoluteValueWatermarkSettings Maven / Gradle / Ivy
package org.graylog2.indexer.cluster.health;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import org.elasticsearch.common.unit.ByteSizeValue;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AbsoluteValueWatermarkSettings extends AbsoluteValueWatermarkSettings {
private final WatermarkSettings.SettingsType type;
private final ByteSizeValue low;
private final ByteSizeValue high;
private final ByteSizeValue floodStage;
AutoValue_AbsoluteValueWatermarkSettings(
WatermarkSettings.SettingsType type,
ByteSizeValue low,
ByteSizeValue high,
@Nullable ByteSizeValue 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 ByteSizeValue low() {
return low;
}
@Override
public ByteSizeValue high() {
return high;
}
@Nullable
@Override
public ByteSizeValue 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$;
}
}