org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.viewwidgets.AutoValue_SeriesSortConfig Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.viewwidgets;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SeriesSortConfig extends SeriesSortConfig {
private final String type;
private final String field;
private final SortConfig.Direction direction;
AutoValue_SeriesSortConfig(
String type,
String field,
SortConfig.Direction direction) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (field == null) {
throw new NullPointerException("Null field");
}
this.field = field;
if (direction == null) {
throw new NullPointerException("Null direction");
}
this.direction = direction;
}
@JsonProperty("type")
@Override
public String type() {
return type;
}
@JsonProperty("field")
@Override
public String field() {
return field;
}
@JsonProperty("direction")
@Override
public SortConfig.Direction direction() {
return direction;
}
@Override
public String toString() {
return "SeriesSortConfig{"
+ "type=" + type + ", "
+ "field=" + field + ", "
+ "direction=" + direction
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SeriesSortConfig) {
SeriesSortConfig that = (SeriesSortConfig) o;
return this.type.equals(that.type())
&& this.field.equals(that.field())
&& this.direction.equals(that.direction());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= field.hashCode();
h$ *= 1000003;
h$ ^= direction.hashCode();
return h$;
}
}