Class LocalizedText

java.lang.Object
com.here.sdk.core.LocalizedText

public final class LocalizedText extends Object

Used to represent text localized to specific language.

  • Field Details

    • text

      @NonNull public String text

      Text value.

    • locale

      @Nullable public Locale locale

      Locale of text, in most cases contains only language code. If locale is not supported by the platform, null is returned.

  • Constructor Details

    • LocalizedText

      public LocalizedText(@NonNull String text, @Nullable Locale locale)

      Creates a new instance.

      Parameters:
      text -

      Text value.

      locale -

      Locale of text, in most cases contains only language code. If locale is not supported by the platform, null is returned.

  • Method Details