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