|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<K,java.util.List<V>> org.apache.wicket.util.collections.MultiMap<K,V>
K
- V
- public class MultiMap<K,V>
A simple multimap
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
MultiMap()
Constructor |
|
MultiMap(int initialCapacity)
Constructor |
|
MultiMap(int initialCapacity,
float loadFactor)
Constructor |
|
MultiMap(java.util.Map<? extends K,? extends java.util.List<V>> m)
Constructor |
Method Summary | |
---|---|
void |
addValue(K key,
V value)
Adds value to the specified key |
V |
getFirstValue(K key)
Gets the first value in the value list |
void |
removeValue(K key,
V value)
Removes value from the specified key |
void |
replaceValues(K key,
V value)
Replaces all existing values with the specified value. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public MultiMap()
HashMap.HashMap()
public MultiMap(int initialCapacity, float loadFactor)
initialCapacity
- loadFactor
- HashMap.HashMap(int, float)
public MultiMap(int initialCapacity)
initialCapacity
- HashMap.HashMap(int)
public MultiMap(java.util.Map<? extends K,? extends java.util.List<V>> m)
m
- HashMap.HashMap(Map)
Method Detail |
---|
public void addValue(K key, V value)
key
- value
- public void removeValue(K key, V value)
key
- value
- public void replaceValues(K key, V value)
key
- value
- public V getFirstValue(K key)
key
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |