com.google.javascript.jscomp.AutoValue_JsMessage 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 com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_JsMessage extends JsMessage {
private final String getSourceName;
private final String getKey;
private final boolean isAnonymous;
private final boolean isExternal;
private final String getId;
private final ImmutableList getParts;
private final String getAlternateId;
private final String getDesc;
private final String getMeaning;
private final boolean isHidden;
private final ImmutableSet placeholders;
AutoValue_JsMessage(
@Nullable String getSourceName,
String getKey,
boolean isAnonymous,
boolean isExternal,
String getId,
ImmutableList getParts,
@Nullable String getAlternateId,
@Nullable String getDesc,
@Nullable String getMeaning,
boolean isHidden,
ImmutableSet placeholders) {
this.getSourceName = getSourceName;
if (getKey == null) {
throw new NullPointerException("Null getKey");
}
this.getKey = getKey;
this.isAnonymous = isAnonymous;
this.isExternal = isExternal;
if (getId == null) {
throw new NullPointerException("Null getId");
}
this.getId = getId;
if (getParts == null) {
throw new NullPointerException("Null getParts");
}
this.getParts = getParts;
this.getAlternateId = getAlternateId;
this.getDesc = getDesc;
this.getMeaning = getMeaning;
this.isHidden = isHidden;
if (placeholders == null) {
throw new NullPointerException("Null placeholders");
}
this.placeholders = placeholders;
}
@Nullable
@Override
public String getSourceName() {
return getSourceName;
}
@Override
public String getKey() {
return getKey;
}
@Override
public boolean isAnonymous() {
return isAnonymous;
}
@Override
public boolean isExternal() {
return isExternal;
}
@Override
public String getId() {
return getId;
}
@Override
public ImmutableList getParts() {
return getParts;
}
@Nullable
@Override
public String getAlternateId() {
return getAlternateId;
}
@Nullable
@Override
public String getDesc() {
return getDesc;
}
@Nullable
@Override
public String getMeaning() {
return getMeaning;
}
@Override
public boolean isHidden() {
return isHidden;
}
@Override
public ImmutableSet placeholders() {
return placeholders;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof JsMessage) {
JsMessage that = (JsMessage) o;
return ((this.getSourceName == null) ? (that.getSourceName() == null) : this.getSourceName.equals(that.getSourceName()))
&& (this.getKey.equals(that.getKey()))
&& (this.isAnonymous == that.isAnonymous())
&& (this.isExternal == that.isExternal())
&& (this.getId.equals(that.getId()))
&& (this.getParts.equals(that.getParts()))
&& ((this.getAlternateId == null) ? (that.getAlternateId() == null) : this.getAlternateId.equals(that.getAlternateId()))
&& ((this.getDesc == null) ? (that.getDesc() == null) : this.getDesc.equals(that.getDesc()))
&& ((this.getMeaning == null) ? (that.getMeaning() == null) : this.getMeaning.equals(that.getMeaning()))
&& (this.isHidden == that.isHidden())
&& (this.placeholders.equals(that.placeholders()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (getSourceName == null) ? 0 : getSourceName.hashCode();
h$ *= 1000003;
h$ ^= getKey.hashCode();
h$ *= 1000003;
h$ ^= isAnonymous ? 1231 : 1237;
h$ *= 1000003;
h$ ^= isExternal ? 1231 : 1237;
h$ *= 1000003;
h$ ^= getId.hashCode();
h$ *= 1000003;
h$ ^= getParts.hashCode();
h$ *= 1000003;
h$ ^= (getAlternateId == null) ? 0 : getAlternateId.hashCode();
h$ *= 1000003;
h$ ^= (getDesc == null) ? 0 : getDesc.hashCode();
h$ *= 1000003;
h$ ^= (getMeaning == null) ? 0 : getMeaning.hashCode();
h$ *= 1000003;
h$ ^= isHidden ? 1231 : 1237;
h$ *= 1000003;
h$ ^= placeholders.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy