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

com.google.errorprone.bugpatterns.inlineme.AutoValue_Inliner_Api Maven / Gradle / Ivy

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

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Inliner_Api extends Inliner.Api {

  private final String className;

  private final String methodName;

  private final String packageName;

  private final boolean isConstructor;

  private final boolean isDeprecated;

  private final String extraMessage;

  AutoValue_Inliner_Api(
      String className,
      String methodName,
      String packageName,
      boolean isConstructor,
      boolean isDeprecated,
      String extraMessage) {
    if (className == null) {
      throw new NullPointerException("Null className");
    }
    this.className = className;
    if (methodName == null) {
      throw new NullPointerException("Null methodName");
    }
    this.methodName = methodName;
    if (packageName == null) {
      throw new NullPointerException("Null packageName");
    }
    this.packageName = packageName;
    this.isConstructor = isConstructor;
    this.isDeprecated = isDeprecated;
    if (extraMessage == null) {
      throw new NullPointerException("Null extraMessage");
    }
    this.extraMessage = extraMessage;
  }

  @Override
  String className() {
    return className;
  }

  @Override
  String methodName() {
    return methodName;
  }

  @Override
  String packageName() {
    return packageName;
  }

  @Override
  boolean isConstructor() {
    return isConstructor;
  }

  @Override
  boolean isDeprecated() {
    return isDeprecated;
  }

  @Override
  String extraMessage() {
    return extraMessage;
  }

  @Override
  public String toString() {
    return "Api{"
        + "className=" + className + ", "
        + "methodName=" + methodName + ", "
        + "packageName=" + packageName + ", "
        + "isConstructor=" + isConstructor + ", "
        + "isDeprecated=" + isDeprecated + ", "
        + "extraMessage=" + extraMessage
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Inliner.Api) {
      Inliner.Api that = (Inliner.Api) o;
      return this.className.equals(that.className())
          && this.methodName.equals(that.methodName())
          && this.packageName.equals(that.packageName())
          && this.isConstructor == that.isConstructor()
          && this.isDeprecated == that.isDeprecated()
          && this.extraMessage.equals(that.extraMessage());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= className.hashCode();
    h$ *= 1000003;
    h$ ^= methodName.hashCode();
    h$ *= 1000003;
    h$ ^= packageName.hashCode();
    h$ *= 1000003;
    h$ ^= isConstructor ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= isDeprecated ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= extraMessage.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy