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

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

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

import com.sun.tools.javac.code.Type;
import com.sun.tools.javac.tree.JCTree;
import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_UTypeVar_TypeWithExpression extends UTypeVar.TypeWithExpression {

  private final Type type;

  private final JCTree.JCExpression expression;

  AutoValue_UTypeVar_TypeWithExpression(
      Type type,
      @Nullable JCTree.JCExpression expression) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    this.expression = expression;
  }

  @Override
  public Type type() {
    return type;
  }

  @Nullable
  @Override
  JCTree.JCExpression expression() {
    return expression;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UTypeVar.TypeWithExpression) {
      UTypeVar.TypeWithExpression that = (UTypeVar.TypeWithExpression) o;
      return this.type.equals(that.type())
          && (this.expression == null ? that.expression() == null : this.expression.equals(that.expression()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= (expression == null) ? 0 : expression.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy