public abstract class Annotation extends java.lang.Object implements java.lang.Comparable<Annotation>
| Modifier | Constructor and Description |
|---|---|
protected |
Annotation() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Annotation annotation) |
boolean |
equals(java.lang.Object o) |
long |
getId()
Gets the annotation's unique ID.
|
protected MapboxMap |
getMapboxMap()
Gets the associated MapboxMap
|
int |
hashCode() |
void |
remove() |
void |
setId(long id)
Do not use this method.
|
void |
setMapboxMap(MapboxMap mapboxMap)
Do not use this method.
|
public long getId()
Gets the annotation's unique ID.
This ID is unique for a MapView instance and is suitable for associating your own extra data with.public void remove()
public void setId(long id)
public void setMapboxMap(MapboxMap mapboxMap)
protected MapboxMap getMapboxMap()
public int compareTo(Annotation annotation)
compareTo in interface java.lang.Comparable<Annotation>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object