@Override public int hashCode() { final int prime = 37; int result = 1; result = prime * result + (StringUtils.isEmpty(this.content) ? 0 : this.content.hashCode()); result = prime * result + (this.languageCode == null ? 0 : this.languageCode.hashCode()); return result; }
/** * Sets the value of the languageCode property. * * @param value * allowed object is {@link String } * */ public void setLanguageCode(String languageCode) { this.languageCode = (languageCode == null) ? null : LanguageCode.valueOf(languageCode); }
|| !Arrays.stream(LanguageCode.getValues()).anyMatch(title.getTranslatedTitle().getLanguageCode()::equals))) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(LanguageCode.getValues()).collect(Collectors.joining(", ")); params.put("type", "translated title -> language code"); params.put("values", values); if (!Arrays.stream(LanguageCode.getValues()).anyMatch(work.getLanguageCode()::equals)) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(LanguageCode.getValues()).collect(Collectors.joining(", ")); params.put("type", "language code"); params.put("values", values);
/** * Gets the value of the languageCode property. * * @return possible object is {@link Title } * */ public String getLanguageCode() { return languageCode == null ? null : languageCode.name(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TranslatedTitle other = (TranslatedTitle) obj; if (this.content == null) { if (other.content != null) return false; } else if (!this.content.equals(other.content)) return false; if (this.languageCode == null) { if (other.languageCode != null) return false; } else if (!this.languageCode.equals(other.languageCode)) return false; return true; } }
|| !Arrays.stream(LanguageCode.getValues()).anyMatch(title.getTranslatedTitle().getLanguageCode()::equals))) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(LanguageCode.getValues()).collect(Collectors.joining(", ")); params.put("type", "translated title -> language code"); params.put("values", values); if (!Arrays.stream(LanguageCode.getValues()).anyMatch(work.getLanguageCode()::equals)) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(LanguageCode.getValues()).collect(Collectors.joining(", ")); params.put("type", "language code"); params.put("values", values);
public String getLanguageCode() { return (languageCode == null) ? null : languageCode.name(); }
if (other.languageCode != null) return false; } else if (!languageCode.equals(other.languageCode)) return false;
public TranslatedTitle(String content, String languageCode) { this.content = content; this.languageCode = (languageCode == null) ? null : LanguageCode.valueOf(languageCode); }
|| !Arrays.stream(LanguageCode.getValues()).anyMatch(title.getTranslatedTitle().getLanguageCode()::equals)) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(LanguageCode.getValues()).collect(Collectors.joining(", ")); params.put("type", "translated title -> language code"); params.put("values", values);
@Override public String marshal(LanguageCode v) throws Exception { try { return v.name(); } catch (Exception e) { throw new IllegalEnumValueException(LanguageCode.class, String.valueOf(v)); } } }
/** * Note that put-code is not part of hashcode. This is important for avoid * creation of duplication works. */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((publicationDate == null) ? 0 : publicationDate.hashCode()); result = prime * result + ((shortDescription == null) ? 0 : shortDescription.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); result = prime * result + ((visibility == null) ? 0 : visibility.hashCode()); result = prime * result + ((citation == null) ? 0 : citation.hashCode()); result = prime * result + ((contributors == null) ? 0 : contributors.hashCode()); result = prime * result + ((externalIdentifiers == null) ? 0 : externalIdentifiers.hashCode()); result = prime * result + ((source == null) ? 0 : source.hashCode()); result = prime * result + ((title == null) ? 0 : title.hashCode()); result = prime * result + ((type == null) ? 0 : type.hashCode()); result = prime * result + ((journalTitle == null) ? 0 : journalTitle.hashCode()); result = prime * result + ((languageCode == null) ? 0 : languageCode.hashCode()); result = prime * result + ((country == null) ? 0 : country.hashCode()); return result; }
public void setLanguageCode(String languageCode) { this.languageCode = (languageCode == null) ? null : LanguageCode.valueOf(languageCode); }
|| !Arrays.stream(LanguageCode.getValues()).anyMatch(title.getTranslatedTitle().getLanguageCode()::equals)) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(LanguageCode.getValues()).collect(Collectors.joining(", ")); params.put("type", "translated title -> language code"); params.put("values", values);
@Override public LanguageCode unmarshal(String v) throws Exception { try { return LanguageCode.valueOf(v); } catch (IllegalArgumentException e) { throw new IllegalEnumValueException(LanguageCode.class, v); } }