dagger.internal.codegen.writing.AutoValue_ComponentCreatorImplementation 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.writing;
import com.google.common.collect.ImmutableMap;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.FieldSpec;
import com.squareup.javapoet.TypeSpec;
import dagger.internal.codegen.binding.ComponentRequirement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ComponentCreatorImplementation extends ComponentCreatorImplementation {
private final TypeSpec spec;
private final ClassName name;
private final ImmutableMap fields;
AutoValue_ComponentCreatorImplementation(
TypeSpec spec,
ClassName name,
ImmutableMap fields) {
if (spec == null) {
throw new NullPointerException("Null spec");
}
this.spec = spec;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
if (fields == null) {
throw new NullPointerException("Null fields");
}
this.fields = fields;
}
@Override
public TypeSpec spec() {
return spec;
}
@Override
public ClassName name() {
return name;
}
@Override
ImmutableMap fields() {
return fields;
}
@Override
public String toString() {
return "ComponentCreatorImplementation{"
+ "spec=" + spec + ", "
+ "name=" + name + ", "
+ "fields=" + fields
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ComponentCreatorImplementation) {
ComponentCreatorImplementation that = (ComponentCreatorImplementation) o;
return this.spec.equals(that.spec())
&& this.name.equals(that.name())
&& this.fields.equals(that.fields());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= spec.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= fields.hashCode();
return h$;
}
}