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