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