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

com.google.javascript.jscomp.AutoValue_GlobalNamespace_ObjLitStringKeyAnalysis Maven / Gradle / Ivy

There is a newer version: 9.0.8
Show newest version


package com.google.javascript.jscomp;

import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_GlobalNamespace_ObjLitStringKeyAnalysis extends GlobalNamespace.ObjLitStringKeyAnalysis {

  private final String nameString;
  private final GlobalNamespace.NameType nameType;

  AutoValue_GlobalNamespace_ObjLitStringKeyAnalysis(
      @Nullable String nameString,
      @Nullable GlobalNamespace.NameType nameType) {
    this.nameString = nameString;
    this.nameType = nameType;
  }

  @Nullable
  @Override
  public String getNameString() {
    return nameString;
  }

  @Nullable
  @Override
  public GlobalNamespace.NameType getNameType() {
    return nameType;
  }

  @Override
  public String toString() {
    return "ObjLitStringKeyAnalysis{"
         + "nameString=" + nameString + ", "
         + "nameType=" + nameType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GlobalNamespace.ObjLitStringKeyAnalysis) {
      GlobalNamespace.ObjLitStringKeyAnalysis that = (GlobalNamespace.ObjLitStringKeyAnalysis) o;
      return ((this.nameString == null) ? (that.getNameString() == null) : this.nameString.equals(that.getNameString()))
           && ((this.nameType == null) ? (that.getNameType() == null) : this.nameType.equals(that.getNameType()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy