java.lang.Comparable<Annotation>BasePointCollection, Marker@Deprecated public abstract class Annotation extends java.lang.Object implements java.lang.Comparable<Annotation>
| Modifier and Type | Field | Description |
|---|---|---|
protected MapView |
mapView |
Deprecated.
|
protected TrimbleMapsMap |
trimbleMapsMap |
Deprecated.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
Annotation() |
Deprecated.
|
| Modifier and Type | Method | 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 MapView |
getMapView() |
Deprecated.
Gets the hosting map view.
|
protected TrimbleMapsMap |
getTrimbleMapsMap() |
Deprecated.
Gets the hosting mapbox map.
|
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 |
setMapView(MapView mapView) |
Deprecated.
Do not use this method, used internally by the SDK.
|
void |
setTrimbleMapsMap(TrimbleMapsMap trimbleMapsMap) |
Deprecated.
Do not use this method, used internally by the SDK.
|
protected TrimbleMapsMap trimbleMapsMap
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 setTrimbleMapsMap(TrimbleMapsMap trimbleMapsMap)
trimbleMapsMap - the hosting mapbox mapprotected TrimbleMapsMap getTrimbleMapsMap()
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.Objectobject - Another Annotation to check equality with this object.public int hashCode()
hashCode in class java.lang.Object