public interface SizedMap extends Map
Map type that maintains a maximum size, automatically
 removing entries when the maximum is exceeded.| Modifier and Type | Method and Description | 
|---|---|
| int | getMaxSize()The maximum number of entries, or Integer.MAX_VALUE for no limit. | 
| boolean | isFull()Whether the map is full. | 
| void | overflowRemoved(Object key,
               Object value)Overridable callback for when an overflow entry is automatically removed. | 
| void | setMaxSize(int max)The maximum number of entries, or Integer.MAX_VALUE for no limit. | 
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesCopyright © 2006–2020 Apache Software Foundation. All rights reserved.