com.google.errorprone.bugpatterns.AutoValue_MixedMutabilityReturnType_TypeDetails Maven / Gradle / Ivy
package com.google.errorprone.bugpatterns;
import com.google.errorprone.matchers.Matcher;
import com.sun.source.tree.ExpressionTree;
import com.sun.source.tree.Tree;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MixedMutabilityReturnType_TypeDetails extends MixedMutabilityReturnType.TypeDetails {
private final String immutableType;
private final String builderType;
private final Matcher appendMethods;
private final Matcher skipTypes;
AutoValue_MixedMutabilityReturnType_TypeDetails(
String immutableType,
String builderType,
Matcher appendMethods,
Matcher skipTypes) {
if (immutableType == null) {
throw new NullPointerException("Null immutableType");
}
this.immutableType = immutableType;
if (builderType == null) {
throw new NullPointerException("Null builderType");
}
this.builderType = builderType;
if (appendMethods == null) {
throw new NullPointerException("Null appendMethods");
}
this.appendMethods = appendMethods;
if (skipTypes == null) {
throw new NullPointerException("Null skipTypes");
}
this.skipTypes = skipTypes;
}
@Override
String immutableType() {
return immutableType;
}
@Override
String builderType() {
return builderType;
}
@Override
Matcher appendMethods() {
return appendMethods;
}
@Override
Matcher skipTypes() {
return skipTypes;
}
@Override
public String toString() {
return "TypeDetails{"
+ "immutableType=" + immutableType + ", "
+ "builderType=" + builderType + ", "
+ "appendMethods=" + appendMethods + ", "
+ "skipTypes=" + skipTypes
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MixedMutabilityReturnType.TypeDetails) {
MixedMutabilityReturnType.TypeDetails that = (MixedMutabilityReturnType.TypeDetails) o;
return this.immutableType.equals(that.immutableType())
&& this.builderType.equals(that.builderType())
&& this.appendMethods.equals(that.appendMethods())
&& this.skipTypes.equals(that.skipTypes());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= immutableType.hashCode();
h$ *= 1000003;
h$ ^= builderType.hashCode();
h$ *= 1000003;
h$ ^= appendMethods.hashCode();
h$ *= 1000003;
h$ ^= skipTypes.hashCode();
return h$;
}
}