K - The type of the keys in this mapV - The type of the values in this map@NotThreadSafe public class SizeConstrainedMap<K,V> extends DelegateMap<K,V>
| Constructor and Description |
|---|
SizeConstrainedMap(java.util.Map<K,V> delegate,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
remove(java.lang.Object key) |
java.util.Collection<V> |
values() |
containsKey, containsValue, get, isEmpty, sizepublic V remove(java.lang.Object key)
public void clear()
@Nonnull public java.util.Set<K> keySet()
@Nonnull public java.util.Collection<V> values()