@Deprecated public abstract class Annotation extends java.lang.Object implements java.lang.Comparable<Annotation>
Modifier and Type | Field and Description |
---|---|
protected MapboxMap |
mapboxMap
Deprecated.
|
protected MapView |
mapView
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
Annotation()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Annotation annotation)
Deprecated.
Compares this Annotation object with another Annotation.
|
boolean |
equals(java.lang.Object object)
Deprecated.
Checks if this Annotation object is equal to another Annotation.
|
long |
getId()
Deprecated.
Gets the annotation's unique ID.
|
protected MapboxMap |
getMapboxMap()
Deprecated.
Gets the hosting mapbox map.
|
protected MapView |
getMapView()
Deprecated.
Gets the hosting map view.
|
int |
hashCode()
Deprecated.
Gives an integer which can be used as the bucket number for storing elements of the set/map.
|
void |
remove()
Deprecated.
Do not use this method, used internally by the SDK.
|
void |
setId(long id)
Deprecated.
Do not use this method, used internally by the SDK.
|
void |
setMapboxMap(MapboxMap mapboxMap)
Deprecated.
Do not use this method, used internally by the SDK.
|
void |
setMapView(MapView mapView)
Deprecated.
Do not use this method, used internally by the SDK.
|
protected MapboxMap mapboxMap
protected MapView mapView
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)
id
- the assigned idpublic void setMapboxMap(MapboxMap mapboxMap)
mapboxMap
- the hosting mapbox mapprotected MapboxMap getMapboxMap()
public void setMapView(MapView mapView)
mapView
- the hosting map viewprotected MapView getMapView()
public int compareTo(@NonNull Annotation annotation)
compareTo
in interface java.lang.Comparable<Annotation>
annotation
- Another Annotation to compare with this object.public boolean equals(@Nullable java.lang.Object object)
equals
in class java.lang.Object
object
- Another Annotation to check equality with this object.public int hashCode()
hashCode
in class java.lang.Object