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