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

dagger.internal.codegen.validation.$AutoValue_SpiModelBindingGraphConverter_BindingGraphImpl Maven / Gradle / Ivy

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

import com.google.common.graph.ImmutableNetwork;
import dagger.spi.model.BindingGraph;
import dagger.spi.model.DaggerProcessingEnv;

// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_SpiModelBindingGraphConverter_BindingGraphImpl extends SpiModelBindingGraphConverter.BindingGraphImpl {

  private final ImmutableNetwork network;

  private final boolean isFullBindingGraph;

  private final DaggerProcessingEnv.Backend backend;

  $AutoValue_SpiModelBindingGraphConverter_BindingGraphImpl(
      ImmutableNetwork network,
      boolean isFullBindingGraph,
      DaggerProcessingEnv.Backend backend) {
    if (network == null) {
      throw new NullPointerException("Null network");
    }
    this.network = network;
    this.isFullBindingGraph = isFullBindingGraph;
    if (backend == null) {
      throw new NullPointerException("Null backend");
    }
    this.backend = backend;
  }

  @Override
  public ImmutableNetwork network() {
    return network;
  }

  @Override
  public boolean isFullBindingGraph() {
    return isFullBindingGraph;
  }

  @Override
  public DaggerProcessingEnv.Backend backend() {
    return backend;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SpiModelBindingGraphConverter.BindingGraphImpl) {
      SpiModelBindingGraphConverter.BindingGraphImpl that = (SpiModelBindingGraphConverter.BindingGraphImpl) o;
      return this.network.equals(that.network())
          && this.isFullBindingGraph == that.isFullBindingGraph()
          && this.backend.equals(that.backend());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= network.hashCode();
    h$ *= 1000003;
    h$ ^= isFullBindingGraph ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= backend.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy