K
- Key typeV
- Value typepublic final class MicroMap<K,V> extends Object implements Map<K,V>, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ENTRIES
The maximum number of entries this map supports.
|
Constructor and Description |
---|
MicroMap()
Constructor
|
MicroMap(K key,
V value)
Constructs map with a single key and value pair.
|
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, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final int MAX_ENTRIES
public 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–2022 Apache Software Foundation. All rights reserved.