K3MutableMarkerPool

A mutable marker pool that allocates and maintains the mapping between unique ids and marker names.

Once an id<->name mapping has been established, this mapping cannot change anymore. This implies that any form of overwrite or remove function is prohibited to be implemented on implementing classes.

For most cases, use mutableK3MarkerPoolOf to create a mutable marker pool implementation.

See also

Functions

Link copied to clipboard
abstract fun build(): K3MarkerPool

Returns an immutable copy of this marker pool. Later allocations are not reflected in this copy.

Link copied to clipboard
abstract fun getById(id: Int): K3Marker?

Gets the corresponding marker by unique numeric id, or null if there is no marker with such id.

Link copied to clipboard
abstract fun getByName(name: String): K3Marker?

Gets the corresponding marker by name, or null if there is no marker with such name.

Link copied to clipboard
abstract fun getOrAllocateByName(name: String): K3Marker

Gets the marker by name, or allocates a new marker.