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.
|
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.