Class MiniMap<K,V>
- java.lang.Object
-
- org.apache.wicket.util.collections.MiniMap<K,V>
-
- Type Parameters:
K- Key typeV- Value type
- All Implemented Interfaces:
java.io.Serializable,java.util.Map<K,V>
public class MiniMap<K,V> extends java.lang.Object implements java.util.Map<K,V>, java.io.SerializableA fixed size map implementation. Holds an array of keys and array of values which correspond by index. Null key entries are available for use. This means that null is not a valid key.- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)booleanisEmpty()booleanisFull()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> map)Vremove(java.lang.Object key)intsize()java.util.Collection<V>values()
-
-
-
Method Detail
-
isFull
public boolean isFull()
- Returns:
- True if this MicroMap is full
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
get
public V get(java.lang.Object key)
-
remove
public V remove(java.lang.Object key)
-
clear
public void clear()
-
keySet
public java.util.Set<K> keySet()
-
values
public java.util.Collection<V> values()
-
-