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

dagger.hilt.processor.internal.AutoValue_MethodSignature Maven / Gradle / Ivy

The newest version!
package dagger.hilt.processor.internal;

import com.google.common.collect.ImmutableList;
import com.squareup.javapoet.TypeName;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_MethodSignature extends MethodSignature {

  private final String name;

  private final ImmutableList parameters;

  AutoValue_MethodSignature(
      String name,
      ImmutableList parameters) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (parameters == null) {
      throw new NullPointerException("Null parameters");
    }
    this.parameters = parameters;
  }

  @Override
  String name() {
    return name;
  }

  @Override
  ImmutableList parameters() {
    return parameters;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof MethodSignature) {
      MethodSignature that = (MethodSignature) o;
      return this.name.equals(that.name())
          && this.parameters.equals(that.parameters());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy