|
||||||||||
| 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.HashMap
org.openqa.jetty.util.MultiMap
public class MultiMap
A multi valued Map. This Map specializes HashMap and provides methods that operate on multi valued items.
Implemented as a map of LazyList values
LazyList,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Constructor Summary | |
|---|---|
MultiMap()
Constructor. |
|
MultiMap(int size)
Constructor. |
|
MultiMap(Map map)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Object name,
Object value)
Add value to multi valued entry. |
void |
addValues(Object name,
List values)
Add values to multi valued entry. |
void |
addValues(Object name,
String[] values)
Add values to multi valued entry. |
Object |
clone()
|
Object |
get(Object name)
|
String |
getString(Object name)
Get value as String. |
Object |
getValue(Object name,
int i)
Get a value from a multiple value. |
List |
getValues(Object name)
Get multiple values. |
Object |
put(Object name,
Object value)
Put and entry into the map. |
void |
putAll(Map m)
Put all contents of map. |
Object |
putValues(Object name,
List values)
Put multi valued entry. |
Object |
putValues(Object name,
String[] values)
Put multi valued entry. |
boolean |
removeValue(Object name,
Object value)
Remove value. |
Map |
toStringArrayMap()
|
| Methods inherited from class java.util.HashMap |
|---|
clear, containsKey, containsValue, entrySet, isEmpty, keySet, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public MultiMap()
public MultiMap(int size)
size - Capacity of the mappublic MultiMap(Map map)
map - | Method Detail |
|---|
public List getValues(Object name)
name - The entry key.
public Object getValue(Object name,
int i)
name - The entry key.i - Index of element to get.
public String getString(Object name)
name - The entry key.
public Object get(Object name)
get in interface Mapget in class HashMap
public Object put(Object name,
Object value)
put in interface Mapput in class HashMapname - The entry key.value - The entry value.
public Object putValues(Object name,
List values)
name - The entry key.values - The List of multiple values.
public Object putValues(Object name,
String[] values)
name - The entry key.values - The String array of multiple values.
public void add(Object name,
Object value)
name - The entry key.value - The entry value.
public void addValues(Object name,
List values)
name - The entry key.values - The List of multiple values.
public void addValues(Object name,
String[] values)
name - The entry key.values - The String array of multiple values.
public boolean removeValue(Object name,
Object value)
name - The entry key.value - The entry value.
public void putAll(Map m)
putAll in interface MapputAll in class HashMapm - Mappublic Map toStringArrayMap()
public Object clone()
clone in class HashMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||