checkArgument(Objects.equals(msg.getLocaleString(), localeString)); checkArgument( msg.getAltId() < 0, "RenderOnlySoyMsgBundleImpl doesn't support alternate ID's."); long msgId = msg.getId(); checkArgument(
checkArgument(Objects.equals(msg.getLocaleString(), localeString)); checkArgument( msg.getAltId() < 0, "RenderOnlySoyMsgBundleImpl doesn't support alternate ID's."); long msgId = msg.getId(); checkArgument(
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof SoyMsg) { SoyMsg that = (SoyMsg) o; return ((this.localeString == null) ? (that.getLocaleString() == null) : this.localeString.equals(that.getLocaleString())) && (this.id == that.getId()) && (this.altId == that.getAltId()) && ((this.meaning == null) ? (that.getMeaning() == null) : this.meaning.equals(that.getMeaning())) && ((this.desc == null) ? (that.getDesc() == null) : this.desc.equals(that.getDesc())) && (this.hidden == that.isHidden()) && ((this.contentType == null) ? (that.getContentType() == null) : this.contentType.equals(that.getContentType())) && (this.plrselMsg == that.isPlrselMsg()) && (this.parts.equals(that.getParts())); } return false; }
/** Creates a new {@link Builder} based on the current instance. */ Builder toBuilder() { Builder builder = builder() .setId(getId()) .setIsHidden(isHidden()) .setParts(getParts()) .addAllSourceLocations(getSourceLocations()) .setIsPlrselMsg(isPlrselMsg()); if (getLocaleString() != null) { builder.setLocaleString(getLocaleString()); } if (getMeaning() != null) { builder.setMeaning(getMeaning()); } if (getDesc() != null) { builder.setDesc(getDesc()); } if (getAltId() != -1) { builder.setAltId(getAltId()); } if (getContentType() != null) { builder.setContentType(getContentType()); } return builder; }