Companion
object Companion
Functions
Link copied to clipboard
fun <K, V : Any> concurrentHashMap(map: ConcurrentHashMap<K, V> = ConcurrentHashMap()): MapLikeCollection<K, V>
Wraps the map in a MapLikeCollection.
Link copied to clipboard
Wraps the map in a MapLikeCollection, data will be copied on read to prevent modification exceptions.
Link copied to clipboard
Wraps the map in a MapLikeCollection, this assumes that the map can safely be accessed concurrently.
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
Returns an empty immutable MapLikeCollection. This collection will always return null and empty flows and ignores inserted valued.
Link copied to clipboard
Wraps a WeakHashMap into a MapLikeCollection.