com.google.javascript.jscomp.AutoValue_GlobalNamespace_ObjLitStringKeyAnalysis Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
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.
package com.google.javascript.jscomp;
import javax.annotation.processing.Generated;
import org.jspecify.nullness.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GlobalNamespace_ObjLitStringKeyAnalysis extends GlobalNamespace.ObjLitStringKeyAnalysis {
private final @Nullable String nameString;
private final GlobalNamespace.@Nullable NameType nameType;
AutoValue_GlobalNamespace_ObjLitStringKeyAnalysis(
@Nullable String nameString,
GlobalNamespace.@Nullable NameType nameType) {
this.nameString = nameString;
this.nameType = nameType;
}
@Override
public @Nullable String getNameString() {
return nameString;
}
@Override
public GlobalNamespace.@Nullable 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