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