|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.util.MultiMap<K,V>
public class MultiMap<K,V>
A set of mappings from one key to multiple values.
| Constructor Summary | |
|---|---|
MultiMap()
|
|
| Method Summary | ||
|---|---|---|
void |
clear()
Removes all mappings from this MultiMap. |
|
void |
clearModified()
|
|
boolean |
containsKey(Object key)
|
|
static
|
getStreamer(SizeStreamer<E> keyStreamer,
SizeStreamer<F> valueStreamer)
Returns a streamer capable of writing and reading an MultiMap. |
|
boolean |
isModified()
|
|
Set<K> |
keySet()
Returns the keys of this MultiMap. |
|
void |
put(K key,
V value)
Inserts a mapping. |
|
boolean |
remove(Object key,
Object value)
Removes a mapping. |
|
boolean |
removeKey(Object key)
Removes all mappings with the specified key. |
|
boolean |
removeValue(Object value)
Removes all occurrences of the specified value. |
|
boolean |
retainValues(Collection<V> values)
Removes all values not present in the specified set. |
|
int |
size()
|
|
String |
toString()
|
|
Set<V> |
values(Object key)
Returns a set containing the values associated with the specified key. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiMap()
| Method Detail |
|---|
public void put(K key,
V value)
public boolean containsKey(Object key)
public boolean remove(Object key,
Object value)
public boolean removeKey(Object key)
public boolean removeValue(Object value)
public boolean retainValues(Collection<V> values)
public Set<K> keySet()
MultiMap.
public Set<V> values(Object key)
public void clear()
MultiMap.
public int size()
public boolean isModified()
public void clearModified()
public String toString()
toString in class Object
public static <E,F> SizeStreamer<MultiMap<E,F>> getStreamer(SizeStreamer<E> keyStreamer,
SizeStreamer<F> valueStreamer)
MultiMap.
The toStream method always returns null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||