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

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

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$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy