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

dagger.internal.codegen.binding.$AutoValue_ResolvedBindings Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.model.Key;

// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_ResolvedBindings extends ResolvedBindings {

  private final Key key;

  private final ImmutableSet bindingNodes;

  $AutoValue_ResolvedBindings(
      Key key,
      ImmutableSet bindingNodes) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    if (bindingNodes == null) {
      throw new NullPointerException("Null bindingNodes");
    }
    this.bindingNodes = bindingNodes;
  }

  @Override
  Key key() {
    return key;
  }

  @Override
  ImmutableSet bindingNodes() {
    return bindingNodes;
  }

  @Override
  public String toString() {
    return "ResolvedBindings{"
        + "key=" + key + ", "
        + "bindingNodes=" + bindingNodes
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ResolvedBindings) {
      ResolvedBindings that = (ResolvedBindings) o;
      return this.key.equals(that.key())
          && this.bindingNodes.equals(that.bindingNodes());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy