Access Order Linked Hash Map
class AccessOrderLinkedHashMap<K, V>(initialCapacity: Int = 16, loadFactor: Float = 0.75f) : MutableMap<K, V>
A MutableMap implementation that maintains access-order iteration. The least-recently-used (LRU) entry is at the front of the iteration order.
This is achieved by removing and re-inserting entries on access (get/put).
Parameters
K
the type of keys maintained by this map
V
the type of mapped values
initial Capacity
the initial capacity of the map (default is 16)
load Factor
the load factor of the map (default is 0.75f)