com.google.errorprone.refaster.AutoValue_UTypeApply Maven / Gradle / Ivy
package com.google.errorprone.refaster;
import com.google.common.collect.ImmutableList;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_UTypeApply extends UTypeApply {
private final UExpression type;
private final ImmutableList typeArguments;
AutoValue_UTypeApply(
UExpression type,
ImmutableList typeArguments) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (typeArguments == null) {
throw new NullPointerException("Null typeArguments");
}
this.typeArguments = typeArguments;
}
@Override
public UExpression getType() {
return type;
}
@Override
public ImmutableList getTypeArguments() {
return typeArguments;
}
@Override
public String toString() {
return "UTypeApply{"
+ "type=" + type + ", "
+ "typeArguments=" + typeArguments
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UTypeApply) {
UTypeApply that = (UTypeApply) o;
return this.type.equals(that.getType())
&& this.typeArguments.equals(that.getTypeArguments());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= typeArguments.hashCode();
return h$;
}
}