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 com.liferay.frontend.js.minifier
Show all versions of com.liferay.frontend.js.minifier
Liferay Frontend JS Minifier
package com.google.javascript.jscomp;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
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 ImmutableMap getPlaceholderNameToExampleMap;
private final ImmutableMap getPlaceholderNameToOriginalCodeMap;
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,
ImmutableMap getPlaceholderNameToExampleMap,
ImmutableMap getPlaceholderNameToOriginalCodeMap,
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 (getPlaceholderNameToExampleMap == null) {
throw new NullPointerException("Null getPlaceholderNameToExampleMap");
}
this.getPlaceholderNameToExampleMap = getPlaceholderNameToExampleMap;
if (getPlaceholderNameToOriginalCodeMap == null) {
throw new NullPointerException("Null getPlaceholderNameToOriginalCodeMap");
}
this.getPlaceholderNameToOriginalCodeMap = getPlaceholderNameToOriginalCodeMap;
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 ImmutableMap getPlaceholderNameToExampleMap() {
return getPlaceholderNameToExampleMap;
}
@Override
public ImmutableMap getPlaceholderNameToOriginalCodeMap() {
return getPlaceholderNameToOriginalCodeMap;
}
@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.getPlaceholderNameToExampleMap.equals(that.getPlaceholderNameToExampleMap()))
&& (this.getPlaceholderNameToOriginalCodeMap.equals(that.getPlaceholderNameToOriginalCodeMap()))
&& (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$ ^= getPlaceholderNameToExampleMap.hashCode();
h$ *= 1000003;
h$ ^= getPlaceholderNameToOriginalCodeMap.hashCode();
h$ *= 1000003;
h$ ^= placeholders.hashCode();
return h$;
}
}