All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dagger.internal.codegen.binding.AutoValue_AssistedInjectionAnnotations_AssistedParameter Maven / Gradle / Ivy

There is a newer version: 2.52
Show newest version
package dagger.internal.codegen.binding;

import com.squareup.javapoet.TypeName;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_AssistedInjectionAnnotations_AssistedParameter extends AssistedInjectionAnnotations.AssistedParameter {

  private final String qualifier;

  private final TypeName typeName;

  AutoValue_AssistedInjectionAnnotations_AssistedParameter(
      String qualifier,
      TypeName typeName) {
    if (qualifier == null) {
      throw new NullPointerException("Null qualifier");
    }
    this.qualifier = qualifier;
    if (typeName == null) {
      throw new NullPointerException("Null typeName");
    }
    this.typeName = typeName;
  }

  @Override
  public String qualifier() {
    return qualifier;
  }

  @Override
  TypeName typeName() {
    return typeName;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AssistedInjectionAnnotations.AssistedParameter) {
      AssistedInjectionAnnotations.AssistedParameter that = (AssistedInjectionAnnotations.AssistedParameter) o;
      return this.qualifier.equals(that.qualifier())
          && this.typeName.equals(that.typeName());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= qualifier.hashCode();
    h$ *= 1000003;
    h$ ^= typeName.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy