com.google.gerrit.server.AutoValue_ExceptionHook_Status Maven / Gradle / Ivy
The newest version!
package com.google.gerrit.server;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExceptionHook_Status extends ExceptionHook.Status {
private final int statusCode;
private final String statusMessage;
AutoValue_ExceptionHook_Status(
int statusCode,
String statusMessage) {
this.statusCode = statusCode;
if (statusMessage == null) {
throw new NullPointerException("Null statusMessage");
}
this.statusMessage = statusMessage;
}
@Override
public int statusCode() {
return statusCode;
}
@Override
public String statusMessage() {
return statusMessage;
}
@Override
public String toString() {
return "Status{"
+ "statusCode=" + statusCode + ", "
+ "statusMessage=" + statusMessage
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExceptionHook.Status) {
ExceptionHook.Status that = (ExceptionHook.Status) o;
return this.statusCode == that.statusCode()
&& this.statusMessage.equals(that.statusMessage());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= statusCode;
h$ *= 1000003;
h$ ^= statusMessage.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy