dagger.hilt.processor.internal.AutoValue_MethodSignature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hilt-compiler Show documentation
Show all versions of hilt-compiler Show documentation
A fast dependency injector for Android and Java.
The newest version!
package dagger.hilt.processor.internal;
import com.google.common.collect.ImmutableList;
import com.squareup.javapoet.TypeName;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_MethodSignature extends MethodSignature {
private final String name;
private final ImmutableList parameters;
AutoValue_MethodSignature(
String name,
ImmutableList parameters) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (parameters == null) {
throw new NullPointerException("Null parameters");
}
this.parameters = parameters;
}
@Override
String name() {
return name;
}
@Override
ImmutableList parameters() {
return parameters;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MethodSignature) {
MethodSignature that = (MethodSignature) o;
return this.name.equals(that.name())
&& this.parameters.equals(that.parameters());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= parameters.hashCode();
return h$;
}
}