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.
| Modifier and Type | Field and Description |
|---|---|
| private final V | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public V | put(K key, V value)
Overrides java. Implements java. Associates the specified value with the specified key in this map. |
| public void | putAll(Map<? extends K, ? extends V> map)
Overrides java. Implements java. Copies all of the mappings from the specified map to this map. |
| many | back to summary |
|---|---|
| private final V many | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MultiMap | back to summary |
|---|---|
| public MultiMap(V many) | |
| put | back to summary |
|---|---|
| public V put(K key, V value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends K, ? extends V> map) Overrides java. Implements java. Doc from java. Copies all of the mappings from the specified map to this map. These mappings replace any mappings that this map had for any of the keys currently in the specified map.
| |