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 o) |
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 boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object