V
- The value type of the wrapped MultivaluedMap
.public class GuardianStringKeyMultivaluedMap<V> extends Object implements MultivaluedMap<String,V>
MultivaluedMap
wrapper that is able to set guards observing changes of values represented by a key.Constructor and Description |
---|
GuardianStringKeyMultivaluedMap(MultivaluedMap<String,V> inner) |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
V value) |
void |
addAll(String key,
List<V> valueList) |
void |
addAll(String key,
V... newValues) |
void |
addFirst(String key,
V value) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,List<V>>> |
entrySet() |
boolean |
equals(Object o) |
boolean |
equalsIgnoreValueOrder(MultivaluedMap<String,V> otherMap) |
List<V> |
get(Object key) |
V |
getFirst(String key) |
Set<String> |
getGuards()
Get all the guarded keys
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isObservedAndReset(String key)
Return true when the value represented by the key has changed.
|
Set<String> |
keySet() |
List<V> |
put(String key,
List<V> value) |
void |
putAll(Map<? extends String,? extends List<V>> m) |
void |
putSingle(String key,
V value) |
List<V> |
remove(Object key) |
void |
setGuard(String key)
Observe changes of a value represented by the key.
|
int |
size() |
String |
toString() |
Collection<List<V>> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public GuardianStringKeyMultivaluedMap(MultivaluedMap<String,V> inner)
public void putSingle(String key, V value)
putSingle
in interface MultivaluedMap<String,V>
public void addAll(String key, V... newValues)
addAll
in interface MultivaluedMap<String,V>
public void addAll(String key, List<V> valueList)
addAll
in interface MultivaluedMap<String,V>
public void addFirst(String key, V value)
addFirst
in interface MultivaluedMap<String,V>
public boolean equalsIgnoreValueOrder(MultivaluedMap<String,V> otherMap)
equalsIgnoreValueOrder
in interface MultivaluedMap<String,V>
public boolean containsKey(Object key)
containsKey
in interface Map<String,List<V>>
public boolean containsValue(Object value)
containsValue
in interface Map<String,List<V>>
public void setGuard(String key)
key
- the key values to observepublic boolean isObservedAndReset(String key)
key
- the Key observed.public boolean equals(Object o)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.