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 intMAX_ENTRIESDeprecated, 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 voidclear()Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsKey(Object key)Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsValue(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.Vget(Object key)Deprecated, for removal: This API element is subject to removal in a future version.booleanisEmpty()Deprecated, for removal: This API element is subject to removal in a future version.booleanisFull()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.Vput(K key, V value)Deprecated, for removal: This API element is subject to removal in a future version.voidputAll(Map<? extends K,? extends V> map)Deprecated, for removal: This API element is subject to removal in a future version.Vremove(Object key)Deprecated, for removal: This API element is subject to removal in a future version.intsize()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:
sizein 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:
isEmptyin 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:
containsKeyin 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:
containsValuein 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:
getin 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:
putin 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:
removein 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:
putAllin 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:
clearin 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:
keySetin 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:
valuesin interfaceMap<K,V>- See Also:
Map.values()
-
-