public interface SizedMap
extends java.util.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(java.lang.Object key,
java.lang.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.
|
int getMaxSize()
void setMaxSize(int max)
boolean isFull()
void overflowRemoved(java.lang.Object key, java.lang.Object value)