public final class LocalizedText
extends java.lang.Object
Constructor and Description |
---|
LocalizedText(java.lang.String text,
java.lang.String locale)
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocale()
Returns locale of the text in IETF BCP 47 language tag format.
|
java.lang.String |
getText()
Returns the localized, human-readable text.
|
java.lang.String |
toString() |
public LocalizedText(java.lang.String text, java.lang.String locale)
text
- Localized, human-readable text. Must not be null
locale
- IETF BCP 47 language tag of text locale. Must not be null
public java.lang.String getText()
null
public java.lang.String getLocale()
null
public java.lang.String toString()
toString
in class java.lang.Object