com.google.gerrit.server.query.change.AutoValue_PredicateArgs_ValOp 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_PredicateArgs_ValOp extends PredicateArgs.ValOp {
private final String value;
private final PredicateArgs.Operator operator;
AutoValue_PredicateArgs_ValOp(
String value,
PredicateArgs.Operator operator) {
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
if (operator == null) {
throw new NullPointerException("Null operator");
}
this.operator = operator;
}
@Override
String value() {
return value;
}
@Override
PredicateArgs.Operator operator() {
return operator;
}
@Override
public String toString() {
return "ValOp{"
+ "value=" + value + ", "
+ "operator=" + operator
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PredicateArgs.ValOp) {
PredicateArgs.ValOp that = (PredicateArgs.ValOp) o;
return this.value.equals(that.value())
&& this.operator.equals(that.operator());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= value.hashCode();
h$ *= 1000003;
h$ ^= operator.hashCode();
return h$;
}
}