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

dagger.internal.codegen.binding.AutoValue_ComponentNodeImpl Maven / Gradle / Ivy

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

import dagger.internal.codegen.model.ComponentPath;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_ComponentNodeImpl extends ComponentNodeImpl {

  private final ComponentPath componentPath;

  private final ComponentDescriptor componentDescriptor;

  AutoValue_ComponentNodeImpl(
      ComponentPath componentPath,
      ComponentDescriptor componentDescriptor) {
    if (componentPath == null) {
      throw new NullPointerException("Null componentPath");
    }
    this.componentPath = componentPath;
    if (componentDescriptor == null) {
      throw new NullPointerException("Null componentDescriptor");
    }
    this.componentDescriptor = componentDescriptor;
  }

  @Override
  public ComponentPath componentPath() {
    return componentPath;
  }

  @Override
  public ComponentDescriptor componentDescriptor() {
    return componentDescriptor;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ComponentNodeImpl) {
      ComponentNodeImpl that = (ComponentNodeImpl) o;
      return this.componentPath.equals(that.componentPath())
          && this.componentDescriptor.equals(that.componentDescriptor());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy