com.google.errorprone.bugpatterns.AutoValue_RedundantSetterCall_OneOfField Maven / Gradle / Ivy
package com.google.errorprone.bugpatterns;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RedundantSetterCall_OneOfField extends RedundantSetterCall.OneOfField {
private final String oneOfName;
AutoValue_RedundantSetterCall_OneOfField(
String oneOfName) {
if (oneOfName == null) {
throw new NullPointerException("Null oneOfName");
}
this.oneOfName = oneOfName;
}
@Override
String oneOfName() {
return oneOfName;
}
@Override
public String toString() {
return "OneOfField{"
+ "oneOfName=" + oneOfName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RedundantSetterCall.OneOfField) {
RedundantSetterCall.OneOfField that = (RedundantSetterCall.OneOfField) o;
return this.oneOfName.equals(that.oneOfName());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= oneOfName.hashCode();
return h$;
}
}