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

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

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

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

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

  private final StringName fullyQualifiedClass;

  private final ImmutableList typeArguments;

  AutoValue_UClassType(
      StringName fullyQualifiedClass,
      ImmutableList typeArguments) {
    if (fullyQualifiedClass == null) {
      throw new NullPointerException("Null fullyQualifiedClass");
    }
    this.fullyQualifiedClass = fullyQualifiedClass;
    if (typeArguments == null) {
      throw new NullPointerException("Null typeArguments");
    }
    this.typeArguments = typeArguments;
  }

  @Override
  StringName fullyQualifiedClass() {
    return fullyQualifiedClass;
  }

  @Override
  ImmutableList typeArguments() {
    return typeArguments;
  }

  @Override
  public String toString() {
    return "UClassType{"
         + "fullyQualifiedClass=" + fullyQualifiedClass + ", "
         + "typeArguments=" + typeArguments
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UClassType) {
      UClassType that = (UClassType) o;
      return this.fullyQualifiedClass.equals(that.fullyQualifiedClass())
          && this.typeArguments.equals(that.typeArguments());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= fullyQualifiedClass.hashCode();
    h$ *= 1000003;
    h$ ^= typeArguments.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy