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