K - Key typeV - Value typepublic class MiniMap<K,V> extends Object implements Map<K,V>, Serializable
| Constructor and Description |
|---|
MiniMap(int maxEntries)
Constructor
|
MiniMap(Map<? extends K,? extends V> map,
int maxEntries)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
boolean |
isFull() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MiniMap(int maxEntries)
maxEntries - The maximum number of entries this map can holdpublic boolean isFull()
public int size()
size in interface Map<K,V>Map.size()public boolean isEmpty()
isEmpty in interface Map<K,V>Map.isEmpty()public boolean containsKey(Object key)
containsKey in interface Map<K,V>Map.containsKey(java.lang.Object)public boolean containsValue(Object value)
containsValue in interface Map<K,V>Map.containsValue(java.lang.Object)public V get(Object key)
get in interface Map<K,V>Map.get(java.lang.Object)public V put(K key, V value)
put in interface Map<K,V>Map.put(java.lang.Object, java.lang.Object)public V remove(Object key)
remove in interface Map<K,V>Map.remove(java.lang.Object)public void putAll(Map<? extends K,? extends V> map)
putAll in interface Map<K,V>Map.putAll(java.util.Map)public void clear()
clear in interface Map<K,V>Map.clear()public Collection<V> values()
values in interface Map<K,V>Map.values()Copyright © 2006–2020 Apache Software Foundation. All rights reserved.