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