Package-level declarations

Types

Link copied to clipboard
class LfuCache<K : Any, V : Any> @JvmOverloads constructor(val capacity: Int, val onDiscard: BiConsumer<K, V> = BiConsumer { _, _ -> }) : Map<K, V>

A simple least frequency used cache. Non-thread-safe.

Link copied to clipboard
sealed interface Pool<E : Any>

An object pool for reusing mutable objects to reduce garbage collection overhead.

Link copied to clipboard
class WeightedSortedList<E> : ObjectList<E> , RandomAccess, Object2DoubleFunction<E>

A list of elements kept sorted by their associated weight (non-decreasing).

Functions

Link copied to clipboard
infix fun ClosedRange<Double>.step(step: Double): DoubleList

Returns a read-only DoubleList representing this ClosedRange of Double values stepped by the specified step.

infix fun ClosedRange<Float>.step(step: Float): FloatList

Returns a read-only FloatList representing this ClosedRange of Float values stepped by the specified step.