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.52
Show newest version
package dagger.hilt.processor.internal.definecomponent;

import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XTypeElement;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata extends DefineComponentBuilderMetadatas.DefineComponentBuilderMetadata {

  private final XTypeElement builder;

  private final XMethodElement buildMethod;

  private final DefineComponentMetadatas.DefineComponentMetadata componentMetadata;

  AutoValue_DefineComponentBuilderMetadatas_DefineComponentBuilderMetadata(
      XTypeElement builder,
      XMethodElement 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
  XTypeElement builder() {
    return builder;
  }

  @Override
  XMethodElement 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