+added more useful collections

This commit is contained in:
sergeych committed 2024-12-22 12:22:51 +03:00
1 parent d29bf960aa
commit f6d2422cc1
8 files changed
+541 -40

No files matched your search

@@ -8,6 +8,7 @@ package net.sergeych.bintools
*
* Note that the cost, [MRUCache] is slower than [MutableMap].
*/
@Deprecated("moved to net.sergeych.collections", ReplaceWith("net.sergeych.collections.MRUCache"))
class MRUCache<K,V>(val maxSize: Int,
private val cache: LinkedHashMap<K,V> = LinkedHashMap()
): MutableMap<K,V> by cache {