com.google.errorprone.refaster.AutoValue_UAnnotation 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_UAnnotation extends UAnnotation {
private final UTree annotationType;
private final ImmutableList arguments;
AutoValue_UAnnotation(
UTree annotationType,
ImmutableList arguments) {
if (annotationType == null) {
throw new NullPointerException("Null annotationType");
}
this.annotationType = annotationType;
if (arguments == null) {
throw new NullPointerException("Null arguments");
}
this.arguments = arguments;
}
@Override
public UTree getAnnotationType() {
return annotationType;
}
@Override
public ImmutableList getArguments() {
return arguments;
}
@Override
public String toString() {
return "UAnnotation{"
+ "annotationType=" + annotationType + ", "
+ "arguments=" + arguments
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UAnnotation) {
UAnnotation that = (UAnnotation) o;
return this.annotationType.equals(that.getAnnotationType())
&& this.arguments.equals(that.getArguments());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= annotationType.hashCode();
h$ *= 1000003;
h$ ^= arguments.hashCode();
return h$;
}
}