Class LocalizedString

  • All Implemented Interfaces:
    Serializable

    public class LocalizedString
    extends Object
    implements Serializable
    Representation of a localized string.

    All members of this class are allowed to be null.

    Author:
    Jens Riemschneider
    See Also:
    Serialized Form
    • Constructor Detail

      • LocalizedString

        public LocalizedString()
        Constructs a localized string.
      • LocalizedString

        public LocalizedString​(String value,
                               String lang,
                               String charset)
        Constructs a localized string.
        Parameters:
        value - the value of the string.
        lang - the language that the string is in.
        charset - the charset used in the string.
      • LocalizedString

        public LocalizedString​(String value)
        Constructs a localized string.
        Parameters:
        value - the value of the string.
    • Method Detail

      • getLang

        public String getLang()
        Returns:
        the language that the string is in.
      • setLang

        public void setLang​(String lang)
        Parameters:
        lang - the language that the string is in.
      • getCharset

        public String getCharset()
        Returns:
        the charset used in the string.
      • setCharset

        public void setCharset​(String charset)
        Parameters:
        charset - the charset used in the string.
      • getValue

        public String getValue()
        Returns:
        the value of the string.
      • setValue

        public void setValue​(String value)
        Parameters:
        value - the value of the string.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object