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

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

package com.google.errorprone.refaster;

import javax.annotation.processing.Generated;

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

  private final String topLevelClass;

  private final StringName name;

  AutoValue_UClassIdent(
      String topLevelClass,
      StringName name) {
    if (topLevelClass == null) {
      throw new NullPointerException("Null topLevelClass");
    }
    this.topLevelClass = topLevelClass;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
  }

  @Override
  public String getTopLevelClass() {
    return topLevelClass;
  }

  @Override
  public StringName getName() {
    return name;
  }

  @Override
  public String toString() {
    return "UClassIdent{"
        + "topLevelClass=" + topLevelClass + ", "
        + "name=" + name
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UClassIdent) {
      UClassIdent that = (UClassIdent) o;
      return this.topLevelClass.equals(that.getTopLevelClass())
          && this.name.equals(that.getName());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy