org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view.AutoValue_TimeHistogramConfig Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TimeHistogramConfig extends TimeHistogramConfig {
private final AutoInterval interval;
AutoValue_TimeHistogramConfig(
AutoInterval interval) {
if (interval == null) {
throw new NullPointerException("Null interval");
}
this.interval = interval;
}
@JsonProperty(value = "interval")
@Override
public AutoInterval interval() {
return interval;
}
@Override
public String toString() {
return "TimeHistogramConfig{"
+ "interval=" + interval
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TimeHistogramConfig) {
TimeHistogramConfig that = (TimeHistogramConfig) o;
return (this.interval.equals(that.interval()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= interval.hashCode();
return h$;
}
}