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

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

The newest version!
package dagger.internal.codegen.validation;

import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.model.BindingGraph;
import javax.lang.model.element.TypeElement;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ModelBindingGraphConverter_SubcomponentCreatorBindingEdgeImpl extends ModelBindingGraphConverter.SubcomponentCreatorBindingEdgeImpl {

  private final ImmutableSet declaringModules;

  private final BindingGraph.SubcomponentCreatorBindingEdge delegate;

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy