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

com.google.errorprone.bugpatterns.inject.guice.AutoValue_AssistedParameters_ConflictResult Maven / Gradle / Ivy

There is a newer version: 2.27.1
Show newest version
package com.google.errorprone.bugpatterns.inject.guice;

import com.google.common.collect.ImmutableList;
import com.sun.source.tree.VariableTree;
import com.sun.tools.javac.code.Type;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AssistedParameters_ConflictResult extends AssistedParameters.ConflictResult {

  private final Type type;

  private final String value;

  private final ImmutableList parameters;

  AutoValue_AssistedParameters_ConflictResult(
      Type type,
      String value,
      ImmutableList parameters) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
    if (parameters == null) {
      throw new NullPointerException("Null parameters");
    }
    this.parameters = parameters;
  }

  @Override
  Type type() {
    return type;
  }

  @Override
  String value() {
    return value;
  }

  @Override
  ImmutableList parameters() {
    return parameters;
  }

  @Override
  public String toString() {
    return "ConflictResult{"
        + "type=" + type + ", "
        + "value=" + value + ", "
        + "parameters=" + parameters
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AssistedParameters.ConflictResult) {
      AssistedParameters.ConflictResult that = (AssistedParameters.ConflictResult) o;
      return this.type.equals(that.type())
          && this.value.equals(that.value())
          && this.parameters.equals(that.parameters());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy