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

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

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

import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.model.BindingGraph;
import dagger.spi.model.DaggerTypeElement;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_SpiModelBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl extends SpiModelBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl {

  private final ImmutableSet declaringModules;

  private final BindingGraph.SubcomponentCreatorBindingEdge internalDelegate;

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy