Package com.dropbox.core
Class LocalizedText
- java.lang.Object
-
- com.dropbox.core.LocalizedText
-
public final class LocalizedText extends java.lang.ObjectHuman-readable text localized to a specific locale.
-
-
Constructor Summary
Constructors Constructor Description LocalizedText(java.lang.String text, java.lang.String locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLocale()Returns locale of the text in IETF BCP 47 language tag format.java.lang.StringgetText()Returns the localized, human-readable text.java.lang.StringtoString()
-
-
-
Method Detail
-
getText
public java.lang.String getText()
Returns the localized, human-readable text.- Returns:
- localized, human-readable text, never
null
-
getLocale
public java.lang.String getLocale()
Returns locale of the text in IETF BCP 47 language tag format.- Returns:
- locale of text in IETF BCP 47 language tag format, never
null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-