Class LocalizedText

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

  • public final class LocalizedText
    extends java.lang.Object

    Used to represent text localized to specific language.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Locale locale
      Locale of text, in most cases contains only language code.
      java.lang.String text
      Text value.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalizedText​(java.lang.String text, java.util.Locale locale)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • text

        @NonNull
        public java.lang.String text

        Text value.

      • locale

        @Nullable
        public java.util.Locale locale

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

    • Constructor Detail

      • LocalizedText

        public LocalizedText​(@NonNull
                             java.lang.String text,
                             @Nullable
                             java.util.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 Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object