com.google.javascript.jscomp.AutoValue_JsMessage_PlaceholderReference 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.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_JsMessage_PlaceholderReference extends JsMessage.PlaceholderReference {
private final String name;
AutoValue_JsMessage_PlaceholderReference(
String name) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
}
@Override
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof JsMessage.PlaceholderReference) {
JsMessage.PlaceholderReference that = (JsMessage.PlaceholderReference) o;
return (this.name.equals(that.getName()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= name.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy