|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.neoworks.util.AbstractMultiMap | +--com.neoworks.util.VectorMultiMap
This class implements the MultiMap
interface backed with a Vector
.
Nested Class Summary |
Nested classes inherited from class com.neoworks.util.MultiMap |
MultiMap.Entry |
Constructor Summary | |
VectorMultiMap()
Default constructor, creates an empty VectorMultiMap . |
|
VectorMultiMap(MultiMap multimap)
Constructor, creates a VectorMultiMap with the same mapping as the given multimap. |
Method Summary | |
java.util.Set |
entrySet()
Returns a set view of the mappings contained in this multimap. |
java.util.List |
getValueList(java.lang.Object key)
Get the values for a key as a list |
java.util.Set |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in this map (optional operation). |
Methods inherited from class com.neoworks.util.AbstractMultiMap |
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keys, putAll, remove, remove, size, toString, uniqueKeys, values |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VectorMultiMap()
VectorMultiMap
.
public VectorMultiMap(MultiMap multimap)
VectorMultiMap
with the same mapping as the given multimap.
multimap
- The multimap whose mappings we want to copy.Method Detail |
public java.util.Set put(java.lang.Object key, java.lang.Object value)
This implementation always throws an UnsupportedOperationException
.
put
in interface MultiMap
put
in class AbstractMultiMap
key
- Key with which the specified value is to be associated.value
- Value to be associated with the specified key.
Set
of values associated with the specified key.public java.util.List getValueList(java.lang.Object key)
key
- The key
public java.util.Set entrySet()
Iterator.remove
,
Set.remove
, removeAll
, retainAll
and clear
operations. It does not
support the add
or addAll
operations.
entrySet
in interface MultiMap
entrySet
in class AbstractMultiMap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |