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