Class LocalizedString

java.lang.Object
org.n52.janmayen.i18n.LocalizedString
All Implemented Interfaces:
Serializable

public class LocalizedString extends Object implements Serializable
Immutable localized variant of a string.
Since:
1.0.0
See Also:
  • Constructor Details

    • LocalizedString

      public LocalizedString(String value)
    • LocalizedString

      public LocalizedString(Locale lang, String value)
  • Method Details

    • getText

      public String getText()
      Returns:
      the value of this localized string
    • getLang

      public Locale getLang()
      Returns:
      the language of this localized string
    • getLangString

      public String getLangString()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object