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

com.google.errorprone.refaster.AutoValue_UNewClass Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_UNewClass extends UNewClass {

  private final UExpression enclosingExpression;

  private final ImmutableList typeArguments;

  private final UExpression identifier;

  private final ImmutableList arguments;

  private final UClassDecl classBody;

  AutoValue_UNewClass(
      @Nullable UExpression enclosingExpression,
      ImmutableList typeArguments,
      UExpression identifier,
      ImmutableList arguments,
      @Nullable UClassDecl classBody) {
    this.enclosingExpression = enclosingExpression;
    if (typeArguments == null) {
      throw new NullPointerException("Null typeArguments");
    }
    this.typeArguments = typeArguments;
    if (identifier == null) {
      throw new NullPointerException("Null identifier");
    }
    this.identifier = identifier;
    if (arguments == null) {
      throw new NullPointerException("Null arguments");
    }
    this.arguments = arguments;
    this.classBody = classBody;
  }

  @Nullable
  @Override
  public UExpression getEnclosingExpression() {
    return enclosingExpression;
  }

  @Override
  public ImmutableList getTypeArguments() {
    return typeArguments;
  }

  @Override
  public UExpression getIdentifier() {
    return identifier;
  }

  @Override
  public ImmutableList getArguments() {
    return arguments;
  }

  @Nullable
  @Override
  public UClassDecl getClassBody() {
    return classBody;
  }

  @Override
  public String toString() {
    return "UNewClass{"
         + "enclosingExpression=" + enclosingExpression + ", "
         + "typeArguments=" + typeArguments + ", "
         + "identifier=" + identifier + ", "
         + "arguments=" + arguments + ", "
         + "classBody=" + classBody
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UNewClass) {
      UNewClass that = (UNewClass) o;
      return (this.enclosingExpression == null ? that.getEnclosingExpression() == null : this.enclosingExpression.equals(that.getEnclosingExpression()))
          && this.typeArguments.equals(that.getTypeArguments())
          && this.identifier.equals(that.getIdentifier())
          && this.arguments.equals(that.getArguments())
          && (this.classBody == null ? that.getClassBody() == null : this.classBody.equals(that.getClassBody()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (enclosingExpression == null) ? 0 : enclosingExpression.hashCode();
    h$ *= 1000003;
    h$ ^= typeArguments.hashCode();
    h$ *= 1000003;
    h$ ^= identifier.hashCode();
    h$ *= 1000003;
    h$ ^= arguments.hashCode();
    h$ *= 1000003;
    h$ ^= (classBody == null) ? 0 : classBody.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy