| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if an existing key was merged with potentially new values, false if either no change was made, or there were only new keys.the map to overlay on top of this one, merging together values if needed. map)Merge values. |
| public void | |
| public void | |
| public boolean | Returns: true if contains simple valuethe value to search for value)Test for a specific single value in the map. |
| public String | |
| public V | |
| public V | |
| public List | |
| public List | Returns: The previous value or null.The entry key. name, V The simple value value)Overrides java. Implements java. |
| public void | |
| public List | |
| public final List | |
| public boolean | Returns: true if it was removed.The entry key. name, V The entry value. value)Remove value. |
| public String | |
| public Map |
| MultiMap | back to summary |
|---|---|
| public MultiMap() | |
| MultiMap | back to summary |
|---|---|
| public MultiMap(Map<String, List<V>> map) | |
| MultiMap | back to summary |
|---|---|
| public MultiMap(MultiMap<V> map) | |
| add | back to summary |
|---|---|
| public void add(String name, V value) Add value to multi valued entry. If the entry is single valued, it is converted to the first value of a multi valued entry.
| |
| addAllValues | back to summary |
|---|---|
| public boolean addAllValues(MultiMap<V> map) Merge values.
| |
| addValues | back to summary |
|---|---|
| public void addValues(String name, List<V> values) Add values to multi valued entry. If the entry is single valued, it is converted to the first value of a multi valued entry. | |
| addValues | back to summary |
|---|---|
| public void addValues(String name, V[] values) Add values to multi valued entry. If the entry is single valued, it is converted to the first value of a multi valued entry.
| |
| containsSimpleValue | back to summary |
|---|---|
| public boolean containsSimpleValue(V value) Test for a specific single value in the map. Note This is a SLOW operation, and is actively discouraged.
| |
| getString | back to summary |
|---|---|
| public String getString(String name) Get value as String. Single valued items are converted to a String with the toString() Object method. Multi valued entries are converted to a comma separated List. No quoting of commas within values is performed. | |
| getValue | back to summary |
|---|---|
| public V getValue(String name) Get the first value from a multiple value.
| |
| getValue | back to summary |
|---|---|
| public V getValue(String name, int i) Get a value from a multiple value. If the value is not a multivalue, then index 0 retrieves the value or null.
| |
| getValues | back to summary |
|---|---|
| public List Get multiple values. Single valued entries are converted to singleton lists. | |
| put | back to summary |
|---|---|
| public List Overrides java. Implements java. Put multi valued entry. | |
| putAllValues | back to summary |
|---|---|
| public void putAllValues(Map<String, V> input) Shorthand version of putAll | |
| putValues | back to summary |
|---|---|
| public List Put multi valued entry. | |
| putValues | back to summary |
|---|---|
| public final List Put multi valued entry. | |
| removeValue | back to summary |
|---|---|
| public boolean removeValue(String name, V value) Remove value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of this map. The string representation
consists of a list of key-value mappings in the order returned by the
map's | |
| toStringArrayMap | back to summary |
|---|---|
| public Map | |