Class LocalizedText

java.lang.Object
com.dropbox.core.LocalizedText

public final class LocalizedText extends Object
Human-readable text localized to a specific locale.
  • Constructor Details

    • LocalizedText

      public LocalizedText(String text, String locale)
      Create a LocalizedText object that contains the given text already localized to locale.
      Parameters:
      text - Localized, human-readable text. Must not be null
      locale - IETF BCP 47 language tag of text locale. Must not be null
  • Method Details

    • getText

      public String getText()
      Returns the localized, human-readable text.
      Returns:
      localized, human-readable text, never null
    • getLocale

      public 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 String toString()
      Overrides:
      toString in class Object