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

dagger.internal.codegen.validation.AutoValue_ExternalBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl Maven / Gradle / Ivy

There is a newer version: 2.54
Show newest version


package dagger.internal.codegen.validation;

import com.google.common.collect.ImmutableSet;
import dagger.spi.model.BindingGraph;
import javax.annotation.Generated;
import javax.lang.model.element.TypeElement;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_ExternalBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl extends ExternalBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl {

  private final ImmutableSet declaringModules;
  private final BindingGraph.SubcomponentCreatorBindingEdge spiDelegate;

  AutoValue_ExternalBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl(
      ImmutableSet declaringModules,
      BindingGraph.SubcomponentCreatorBindingEdge spiDelegate) {
    if (declaringModules == null) {
      throw new NullPointerException("Null declaringModules");
    }
    this.declaringModules = declaringModules;
    if (spiDelegate == null) {
      throw new NullPointerException("Null spiDelegate");
    }
    this.spiDelegate = spiDelegate;
  }

  @Override
  public ImmutableSet declaringModules() {
    return declaringModules;
  }

  @Override
  BindingGraph.SubcomponentCreatorBindingEdge spiDelegate() {
    return spiDelegate;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExternalBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl) {
      ExternalBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl that = (ExternalBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl) o;
      return (this.declaringModules.equals(that.declaringModules()))
           && (this.spiDelegate.equals(that.spiDelegate()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy