PreCachingAlgorithmDecorator

Optimistically fetch clusters for adjacent zoom levels, caching them as necessary.

Constructors

Link copied to clipboard
constructor(algorithm: Algorithm<T>)

Functions

Link copied to clipboard
open fun addItem(item: T): Boolean
Adds an item to the algorithm
Link copied to clipboard
open fun addItems(items: Collection<T>): Boolean
Adds a collection of items to the algorithm
Link copied to clipboard
open fun clearItems()
Link copied to clipboard
open fun getClusters(zoom: Float): Set<out Cluster<T>>
Link copied to clipboard
open fun getItems(): Collection<T>
Link copied to clipboard
open fun lock()
Link copied to clipboard
open fun removeItem(item: T): Boolean
Removes an item from the algorithm
Link copied to clipboard
open fun removeItems(items: Collection<T>): Boolean
Removes a collection of items from the algorithm
Link copied to clipboard
Link copied to clipboard
open fun unlock()
Link copied to clipboard
open fun updateItem(item: T): Boolean
Updates the provided item in the algorithm