| Modifier and Type | Method and Description |
|---|---|
| public void | add(K
the key key, V the value to be added. value)Add a value to the current list of values for the supplied key. |
| public void | addAll(K
the key. key, V... the values to be added. newValues)Add multiple values to the current list of values for the supplied key. |
| public void | |
| public void | addFirst(K
the key key, V the value to be added. value)Add a value to the first position in the current list of values for the supplied key. |
| public boolean | Returns: true if the maps are equal modulo value ordering.map to be compared to this one. otherMap)Compare the specified map with this map for equality modulo the order of values for each key. |
| public V | Returns: the first value for the specified key or null if the key is not in the map.the key key)A shortcut to get the first value of the supplied key. |
| public void | putSingle(K
the key key, V the single value of the key value)Set the key's value to be a one item list consisting of the supplied value. |
| add | back to summary |
|---|---|
| public void add(K key, V value) Add a value to the current list of values for the supplied key.
| |
| addAll | back to summary |
|---|---|
| public void addAll(K key, V... newValues) Add multiple values to the current list of values for the supplied key. If the supplied array of new values is empty,
method returns immediately. Method throws a
| |
| addAll | back to summary |
|---|---|
| public void addAll(K key, List<V> valueList) Add all the values from the supplied value list to the current list of values for the supplied key. If the supplied
value list is empty, method returns immediately. Method throws a
| |
| addFirst | back to summary |
|---|---|
| public void addFirst(K key, V value) Add a value to the first position in the current list of values for the supplied key.
| |
| equalsIgnoreValueOrder | back to summary |
|---|---|
| public boolean equalsIgnoreValueOrder(MultivaluedMap<K, V> otherMap) Compare the specified map with this map for equality modulo the order of values for each key. Specifically, the values associated with each key are compared as if they were ordered lists.
| |
| getFirst | back to summary |
|---|---|
| public V getFirst(K key) A shortcut to get the first value of the supplied key.
| |
| putSingle | back to summary |
|---|---|
| public void putSingle(K key, V value) Set the key's value to be a one item list consisting of the supplied value. Any existing values will be replaced.
| |