com.google.errorprone.bugpatterns.AutoValue_ImmutableMemberCollection_ReplaceableVar Maven / Gradle / Ivy
package com.google.errorprone.bugpatterns;
import com.sun.source.tree.Tree;
import com.sun.tools.javac.code.Symbol;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ImmutableMemberCollection_ReplaceableVar extends ImmutableMemberCollection.ReplaceableVar {
private final Symbol symbol;
private final ImmutableMemberCollection.ReplaceableType type;
private final Tree declaredType;
AutoValue_ImmutableMemberCollection_ReplaceableVar(
Symbol symbol,
ImmutableMemberCollection.ReplaceableType type,
Tree declaredType) {
if (symbol == null) {
throw new NullPointerException("Null symbol");
}
this.symbol = symbol;
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (declaredType == null) {
throw new NullPointerException("Null declaredType");
}
this.declaredType = declaredType;
}
@Override
Symbol symbol() {
return symbol;
}
@Override
ImmutableMemberCollection.ReplaceableType type() {
return type;
}
@Override
Tree declaredType() {
return declaredType;
}
@Override
public String toString() {
return "ReplaceableVar{"
+ "symbol=" + symbol + ", "
+ "type=" + type + ", "
+ "declaredType=" + declaredType
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ImmutableMemberCollection.ReplaceableVar) {
ImmutableMemberCollection.ReplaceableVar that = (ImmutableMemberCollection.ReplaceableVar) o;
return this.symbol.equals(that.symbol())
&& this.type.equals(that.type())
&& this.declaredType.equals(that.declaredType());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= symbol.hashCode();
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= declaredType.hashCode();
return h$;
}
}