Class MicroMap<K,V>
- java.lang.Object
-
- org.apache.wicket.util.collections.MicroMap<K,V>
-
- Type Parameters:
K
- Key typeV
- Value type
- All Implemented Interfaces:
Serializable
,Map<K,V>
@Deprecated(forRemoval=true, since="9.0.0") public final class MicroMap<K,V> extends Object implements Map<K,V>, Serializable
Deprecated, for removal: This API element is subject to removal in a future version.Please useMap.of(Object, Object)
insteadAn implementation of the java.util.Map interface which can only hold a single object. This is particularly useful to control memory usage in Wicket because many containers hold only a single component.- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_ENTRIES
Deprecated, for removal: This API element is subject to removal in a future version.The maximum number of entries this map supports.
-
Constructor Summary
Constructors Constructor Description MicroMap()
Deprecated, for removal: This API element is subject to removal in a future version.ConstructorMicroMap(K key, V value)
Deprecated, for removal: This API element is subject to removal in a future version.Constructs map with a single key and value pair.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
containsKey(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
containsValue(Object value)
Deprecated, for removal: This API element is subject to removal in a future version.Set<Map.Entry<K,V>>
entrySet()
Deprecated, for removal: This API element is subject to removal in a future version.V
get(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isEmpty()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isFull()
Deprecated, for removal: This API element is subject to removal in a future version.Set<K>
keySet()
Deprecated, for removal: This API element is subject to removal in a future version.V
put(K key, V value)
Deprecated, for removal: This API element is subject to removal in a future version.void
putAll(Map<? extends K,? extends V> map)
Deprecated, for removal: This API element is subject to removal in a future version.V
remove(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.int
size()
Deprecated, for removal: This API element is subject to removal in a future version.Collection<V>
values()
Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
MAX_ENTRIES
public static final int MAX_ENTRIES
Deprecated, for removal: This API element is subject to removal in a future version.The maximum number of entries this map supports.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MicroMap
public MicroMap()
Deprecated, for removal: This API element is subject to removal in a future version.Constructor
-
-
Method Detail
-
isFull
public boolean isFull()
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- True if this MicroMap is full
-
size
public int size()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
size
in interfaceMap<K,V>
- See Also:
Map.size()
-
isEmpty
public boolean isEmpty()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isEmpty
in interfaceMap<K,V>
- See Also:
Map.isEmpty()
-
containsKey
public boolean containsKey(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsKey
in interfaceMap<K,V>
- See Also:
Map.containsKey(java.lang.Object)
-
containsValue
public boolean containsValue(Object value)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsValue
in interfaceMap<K,V>
- See Also:
Map.containsValue(java.lang.Object)
-
get
public V get(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
get
in interfaceMap<K,V>
- See Also:
Map.get(java.lang.Object)
-
put
public V put(K key, V value)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
put
in interfaceMap<K,V>
- See Also:
Map.put(java.lang.Object, java.lang.Object)
-
remove
public V remove(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
remove
in interfaceMap<K,V>
- See Also:
Map.remove(java.lang.Object)
-
putAll
public void putAll(Map<? extends K,? extends V> map)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
putAll
in interfaceMap<K,V>
- See Also:
Map.putAll(java.util.Map)
-
clear
public void clear()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
clear
in interfaceMap<K,V>
- See Also:
Map.clear()
-
keySet
public Set<K> keySet()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
keySet
in interfaceMap<K,V>
- See Also:
Map.keySet()
-
values
public Collection<V> values()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
values
in interfaceMap<K,V>
- See Also:
Map.values()
-
-