com.google.gerrit.server.AutoValue_StarredChangesUtil_StarField Maven / Gradle / Ivy
package com.google.gerrit.server;
import com.google.gerrit.entities.Account;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_StarredChangesUtil_StarField extends StarredChangesUtil.StarField {
private final Account.Id accountId;
private final String label;
AutoValue_StarredChangesUtil_StarField(
Account.Id accountId,
String label) {
if (accountId == null) {
throw new NullPointerException("Null accountId");
}
this.accountId = accountId;
if (label == null) {
throw new NullPointerException("Null label");
}
this.label = label;
}
@Override
public Account.Id accountId() {
return accountId;
}
@Override
public String label() {
return label;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof StarredChangesUtil.StarField) {
StarredChangesUtil.StarField that = (StarredChangesUtil.StarField) o;
return this.accountId.equals(that.accountId())
&& this.label.equals(that.label());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= accountId.hashCode();
h$ *= 1000003;
h$ ^= label.hashCode();
return h$;
}
}