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

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

There is a newer version: 2.54
Show newest version


package dagger.internal.codegen.validation;

import com.google.common.graph.ImmutableNetwork;
import dagger.model.BindingGraph;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 abstract class $AutoValue_ExternalBindingGraphConverter_BindingGraphImpl extends ExternalBindingGraphConverter.BindingGraphImpl {

  private final ImmutableNetwork network;
  private final boolean isFullBindingGraph;

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy