public abstract class Annotation extends java.lang.Object implements java.lang.Comparable<Annotation>
| Modifier and Type | Field and Description |
|---|---|
protected MapboxMap |
mapboxMap |
protected MapView |
mapView |
| 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
|
protected MapView |
getMapView()
Gets the associated MapView
|
int |
hashCode() |
void |
remove() |
void |
setId(long id)
Do not use this method.
|
void |
setMapboxMap(MapboxMap mapboxMap)
Do not use this method.
|
void |
setMapView(MapView mapView)
Don 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 void setMapView(MapView mapView)
protected MapView getMapView()
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