org.graylog2.storage.versionprobe.AutoValue_ErrorResponse Maven / Gradle / Ivy
package org.graylog2.storage.versionprobe;
import java.util.Optional;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ErrorResponse extends ErrorResponse {
private final Optional error;
AutoValue_ErrorResponse(
Optional error) {
if (error == null) {
throw new NullPointerException("Null error");
}
this.error = error;
}
@Override
public Optional error() {
return error;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ErrorResponse) {
ErrorResponse that = (ErrorResponse) o;
return this.error.equals(that.error());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= error.hashCode();
return h$;
}
}