Package globus.glmap
Class GLMapValue
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapDrawObject
globus.glmap.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 booleanequals(java.lang.Object obj)android.text.SpannableStringgetSpanned(java.lang.Object normal, java.lang.Object highlighted, int flags)Returns spannable text valuejava.lang.StringgetString()Returns plain text valueinthashCode()Methods inherited from class globus.glmap.GLMapDrawObject
getDrawOrder, isHidden, setHiddenMethods inherited from class globus.glmap.GLNativeObject
disposeMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
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 texthighlighted- attributes for highlighted textflags- flags for spans- Returns:
- spannable string
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-