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

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

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

import dagger.internal.codegen.model.Key;
import dagger.internal.codegen.model.RequestKind;
import java.util.Optional;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_BindingRequest extends BindingRequest {

  private final Key key;

  private final RequestKind requestKind;

  private final Optional frameworkType;

  AutoValue_BindingRequest(
      Key key,
      RequestKind requestKind,
      Optional frameworkType) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    if (requestKind == null) {
      throw new NullPointerException("Null requestKind");
    }
    this.requestKind = requestKind;
    if (frameworkType == null) {
      throw new NullPointerException("Null frameworkType");
    }
    this.frameworkType = frameworkType;
  }

  @Override
  public Key key() {
    return key;
  }

  @Override
  public RequestKind requestKind() {
    return requestKind;
  }

  @Override
  public Optional frameworkType() {
    return frameworkType;
  }

  @Override
  public String toString() {
    return "BindingRequest{"
        + "key=" + key + ", "
        + "requestKind=" + requestKind + ", "
        + "frameworkType=" + frameworkType
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy