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

com.google.errorprone.bugpatterns.threadsafety.AutoValue_GuardedByExpression_ClassLiteral Maven / Gradle / Ivy

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

import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.Type;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GuardedByExpression_ClassLiteral extends GuardedByExpression.ClassLiteral {

  private final GuardedByExpression.Kind kind;

  private final Symbol sym;

  private final Type type;

  AutoValue_GuardedByExpression_ClassLiteral(
      GuardedByExpression.Kind kind,
      Symbol sym,
      Type type) {
    if (kind == null) {
      throw new NullPointerException("Null kind");
    }
    this.kind = kind;
    if (sym == null) {
      throw new NullPointerException("Null sym");
    }
    this.sym = sym;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
  }

  @Override
  public GuardedByExpression.Kind kind() {
    return kind;
  }

  @Override
  public Symbol sym() {
    return sym;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GuardedByExpression.ClassLiteral) {
      GuardedByExpression.ClassLiteral that = (GuardedByExpression.ClassLiteral) o;
      return this.kind.equals(that.kind())
          && this.sym.equals(that.sym())
          && this.type.equals(that.type());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy