org.graylog2.rest.resources.search.responses.$AutoValue_SearchDecorationStats Maven / Gradle / Ivy
package org.graylog2.rest.resources.search.responses;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_SearchDecorationStats extends SearchDecorationStats {
private final Set addedFields;
private final Set changedFields;
private final Set removedFields;
$AutoValue_SearchDecorationStats(
Set addedFields,
Set changedFields,
Set removedFields) {
if (addedFields == null) {
throw new NullPointerException("Null addedFields");
}
this.addedFields = addedFields;
if (changedFields == null) {
throw new NullPointerException("Null changedFields");
}
this.changedFields = changedFields;
if (removedFields == null) {
throw new NullPointerException("Null removedFields");
}
this.removedFields = removedFields;
}
@SuppressWarnings(value = {"unused"})
@JsonProperty(value = "added_fields")
@Override
public Set addedFields() {
return addedFields;
}
@SuppressWarnings(value = {"unused"})
@JsonProperty(value = "changed_fields")
@Override
public Set changedFields() {
return changedFields;
}
@SuppressWarnings(value = {"unused"})
@JsonProperty(value = "removed_fields")
@Override
public Set removedFields() {
return removedFields;
}
@Override
public String toString() {
return "SearchDecorationStats{"
+ "addedFields=" + addedFields + ", "
+ "changedFields=" + changedFields + ", "
+ "removedFields=" + removedFields
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SearchDecorationStats) {
SearchDecorationStats that = (SearchDecorationStats) o;
return (this.addedFields.equals(that.addedFields()))
&& (this.changedFields.equals(that.changedFields()))
&& (this.removedFields.equals(that.removedFields()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.addedFields.hashCode();
h *= 1000003;
h ^= this.changedFields.hashCode();
h *= 1000003;
h ^= this.removedFields.hashCode();
return h;
}
}