Package-level declarations
Types
Link copied to clipboard
object MapDataCache
Link copied to clipboard
Link copied to clipboard
typealias Supplier<T> = MapLikeCollection.Companion.(description: DataDescription<T, *>) -> MapLikeCollection<out Any, T>
Functions
Link copied to clipboard
fun <KEY, VALUE : Any> MapLikeCollection.Companion.lruLinkedHashMap(maxSize: Int): MapLikeCollection<KEY, VALUE>
Creates a least recently used map using a LinkedHashMap. The map will start evicting entries once maxSize has been reached.
Link copied to clipboard
fun <KEY, VALUE : Any> MutableMap<KEY, VALUE>.toMapLike(concurrent: Boolean): MapLikeCollection<KEY, VALUE>
Wraps the map in a MapLikeCollection, this assumes that the map can safely be accessed concurrently if concurrent is true
.
Link copied to clipboard
Wraps a WeakHashMap into a MapLikeCollection.