Class StaticCluster<T extends ClusterItem>
- java.lang.Object
-
- com.google.maps.android.clustering.algo.StaticCluster<T>
-
- All Implemented Interfaces:
Cluster<T>
public class StaticCluster<T extends ClusterItem> extends java.lang.Object implements Cluster<T>
A cluster whose center is determined upon creation.
-
-
Constructor Summary
Constructors Constructor Description StaticCluster(com.google.android.gms.maps.model.LatLng center)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T t)
boolean
equals(java.lang.Object other)
java.util.Collection<T>
getItems()
com.google.android.gms.maps.model.LatLng
getPosition()
int
getSize()
int
hashCode()
boolean
remove(T t)
java.lang.String
toString()
-
-
-
Method Detail
-
add
public boolean add(T t)
-
getPosition
public com.google.android.gms.maps.model.LatLng getPosition()
- Specified by:
getPosition
in interfaceCluster<T extends ClusterItem>
-
remove
public boolean remove(T t)
-
getItems
public java.util.Collection<T> getItems()
- Specified by:
getItems
in interfaceCluster<T extends ClusterItem>
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceCluster<T extends ClusterItem>
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-