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

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

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

There is a newer version: v20240317
Show newest version


package com.google.javascript.jscomp;

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

@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