Package globus.glmap

Class GLMapValue


  • public class GLMapValue
    extends GLMapDrawObject
    GLMapValue is a class that hold string value and optional information to highlight some parts of it. Usually highlight information comes from search engine.
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      android.text.SpannableString getSpanned​(java.lang.Object normal, java.lang.Object highlighted, int flags)
      Returns spannable text value
      java.lang.String getString()
      Returns plain text value
      int hashCode()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getString

        @NonNull
        public java.lang.String getString()
        Returns plain text value
        Returns:
        plain text
      • getSpanned

        @NonNull
        public android.text.SpannableString getSpanned​(java.lang.Object normal,
                                                       java.lang.Object highlighted,
                                                       int flags)
        Returns spannable text value
        Parameters:
        normal - attributes for normal text
        highlighted - attributes for highlighted text
        flags - flags for spans
        Returns:
        spannable string
      • hashCode

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

        public boolean equals​(@Nullable
                              java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object