public class LimitedMap<K,V>
extends LinkedHashMap<K,V>
Constructor and Description |
---|
LimitedMap()
Instantiates a new empty LimitedMap with a no limit restiction.
|
LimitedMap(int maxSize)
Instantiates a new empty LimitedMap with a specified limit.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
void |
setMaxSize(int value)
Sets the max size.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
Copyright © 2010-2020 Toolsverse. All Rights Reserved.