com.google.errorprone.bugpatterns.threadsafety.AutoValue_GuardedByExpression_Select Maven / Gradle / Ivy
package com.google.errorprone.bugpatterns.threadsafety;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.Type;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GuardedByExpression_Select extends GuardedByExpression.Select {
private final GuardedByExpression.Kind kind;
private final Symbol sym;
private final Type type;
private final GuardedByExpression base;
AutoValue_GuardedByExpression_Select(
GuardedByExpression.Kind kind,
Symbol sym,
Type type,
GuardedByExpression base) {
if (kind == null) {
throw new NullPointerException("Null kind");
}
this.kind = kind;
if (sym == null) {
throw new NullPointerException("Null sym");
}
this.sym = sym;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (base == null) {
throw new NullPointerException("Null base");
}
this.base = base;
}
@Override
public GuardedByExpression.Kind kind() {
return kind;
}
@Override
public Symbol sym() {
return sym;
}
@Override
public Type type() {
return type;
}
@Override
public GuardedByExpression base() {
return base;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GuardedByExpression.Select) {
GuardedByExpression.Select that = (GuardedByExpression.Select) o;
return this.kind.equals(that.kind())
&& this.sym.equals(that.sym())
&& this.type.equals(that.type())
&& this.base.equals(that.base());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= kind.hashCode();
h$ *= 1000003;
h$ ^= sym.hashCode();
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= base.hashCode();
return h$;
}
}