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