|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.qfs.lib.util.MultiMap
de.qfs.lib.util.ListBasedMultiMap
This is a special MultiMap with a list-based value set. It retains the order in which values for a key are added. The result of getAll() is derived from ArrayList.
Nested Class Summary |
Nested classes inherited from class de.qfs.lib.util.MultiMap |
MultiMap.MapEntry, MultiMap.MapIterator, MultiMap.ValueSet |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary |
Fields inherited from class de.qfs.lib.util.MultiMap |
ENTRIES, entrySet, KEYS, keySet, modCounter, valCount, values, VALUES |
Constructor Summary | |
ListBasedMultiMap()
Create a new ListBasedMultiMap. |
|
ListBasedMultiMap(int initialCapacity)
Create a new ListBasedMultiMap. |
|
ListBasedMultiMap(java.util.Map map)
Create a new ListBasedMultiMap and initialize it with all the mappings from the passed map. |
Method Summary | |
protected java.util.Set |
copyResultSet(MultiMap.ValueSet result)
Create a new result set for the getAll method. |
protected java.util.Set |
createResultSet(java.lang.Object result)
Create a new result set for a single element result of the getAll method. |
MultiMap.ValueSet |
createValueSet()
Overidden to return list based set. |
Methods inherited from class de.qfs.lib.util.MultiMap |
_remove, clear, clone, cloneDelegate, contains, containsKey, containsValue, entrySet, equals, get, getAll, getCount, hashCode, isEmpty, keySet, mapsToMany, put, putAll, remove, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListBasedMultiMap()
public ListBasedMultiMap(int initialCapacity)
initialCapacity
- The initial capacity of the
ListBasedMultiMap.public ListBasedMultiMap(java.util.Map map)
map
- The map that initializes this ListBasedMultiMap.Method Detail |
public MultiMap.ValueSet createValueSet()
createValueSet
in class MultiMap
protected java.util.Set copyResultSet(MultiMap.ValueSet result)
copyResultSet
in class MultiMap
result
- The internal result set that should not be exposed.
protected java.util.Set createResultSet(java.lang.Object result)
createResultSet
in class MultiMap
result
- The result element.
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |