public class LocalizedText
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LocalizedText(java.lang.String text)
Creates a localized text using given text as the literal text and set to the system default
locale
|
LocalizedText(java.lang.String text,
java.util.Locale locale)
Creates localized text with the given text as literal, and set to the given locale.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Locale |
getLocale() |
java.lang.String |
getText() |
int |
hashCode() |
java.lang.String |
toString() |
public LocalizedText(java.lang.String text)
public LocalizedText(java.lang.String text, java.util.Locale locale)
public java.lang.String getText()
public java.util.Locale getLocale()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object