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.
                
            package dagger.internal.codegen.writing;
import androidx.room.compiler.codegen.XClassName;
import androidx.room.compiler.codegen.XPropertySpec;
import androidx.room.compiler.codegen.XTypeSpec;
import com.google.common.collect.ImmutableMap;
import dagger.internal.codegen.binding.ComponentRequirement;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ComponentCreatorImplementation extends ComponentCreatorImplementation {
  private final XTypeSpec spec;
  private final XClassName name;
  private final ImmutableMap fields;
  AutoValue_ComponentCreatorImplementation(
      XTypeSpec spec,
      XClassName 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 XTypeSpec spec() {
    return spec;
  }
  @Override
  public XClassName 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$;
  }
}
       © 2015 - 2025 Weber Informatics LLC | Privacy Policy