|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap<K,V>
com.sun.xml.bind.v2.schemagen.MultiMap<K,V>
final class MultiMap<K extends java.lang.Comparable<K>,V>
A special Map that 'conceptually' stores a set of values for each key.
When multiple values are stored, however, this class doesn't let the caller see individual values, and instead it returns a specially designated "MANY" value, which is given as a parameter to the constructor.
| 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(V many)
|
|
| Method Summary | |
|---|---|
V |
put(K key,
V value)
|
void |
putAll(java.util.Map<? extends K,? extends V> map)
|
| Methods inherited from class java.util.TreeMap |
|---|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, remove, size, subMap, subMap, tailMap, tailMap, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, isEmpty, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode, isEmpty |
| Constructor Detail |
|---|
public MultiMap(V many)
| Method Detail |
|---|
public V put(K key,
V value)
put in interface java.util.Map<K extends java.lang.Comparable<K>,V>put in class java.util.TreeMap<K extends java.lang.Comparable<K>,V>public void putAll(java.util.Map<? extends K,? extends V> map)
putAll in interface java.util.Map<K extends java.lang.Comparable<K>,V>putAll in class java.util.TreeMap<K extends java.lang.Comparable<K>,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||