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

dagger.hilt.processor.internal.definecomponent.AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata Maven / Gradle / Ivy

There is a newer version: 2.45-kim-rc1
Show newest version


package dagger.hilt.processor.internal.definecomponent;

import javax.annotation.Generated;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata extends DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata {

  private final TypeElement builder;
  private final ExecutableElement buildMethod;
  private final DefineComponentMetadatas.DefineComponentMetadata componentMetadata;

  AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata(
      TypeElement builder,
      ExecutableElement buildMethod,
      DefineComponentMetadatas.DefineComponentMetadata componentMetadata) {
    if (builder == null) {
      throw new NullPointerException("Null builder");
    }
    this.builder = builder;
    if (buildMethod == null) {
      throw new NullPointerException("Null buildMethod");
    }
    this.buildMethod = buildMethod;
    if (componentMetadata == null) {
      throw new NullPointerException("Null componentMetadata");
    }
    this.componentMetadata = componentMetadata;
  }

  @Override
  TypeElement builder() {
    return builder;
  }

  @Override
  ExecutableElement buildMethod() {
    return buildMethod;
  }

  @Override
  DefineComponentMetadatas.DefineComponentMetadata componentMetadata() {
    return componentMetadata;
  }

  @Override
  public String toString() {
    return "DefineComponentBuilderMetadata{"
         + "builder=" + builder + ", "
         + "buildMethod=" + buildMethod + ", "
         + "componentMetadata=" + componentMetadata
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata) {
      DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata that = (DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata) o;
      return (this.builder.equals(that.builder()))
           && (this.buildMethod.equals(that.buildMethod()))
           && (this.componentMetadata.equals(that.componentMetadata()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= builder.hashCode();
    h$ *= 1000003;
    h$ ^= buildMethod.hashCode();
    h$ *= 1000003;
    h$ ^= componentMetadata.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy