Class TrackingMap<V>
java.lang.Object
org.jboss.resteasy.specimpl.MultivaluedTreeMap<String,V>
org.jboss.resteasy.util.CaseInsensitiveMap<V>
org.jboss.resteasy.client.jaxrs.internal.TrackingMap<V>
- All Implemented Interfaces:
jakarta.ws.rs.core.MultivaluedMap<String,
,V> Serializable
,Cloneable
,Map<String,
List<V>>
public class TrackingMap<V>
extends CaseInsensitiveMap<V>
implements jakarta.ws.rs.core.MultivaluedMap<String,V>, Cloneable
A decorator class to track changes to the underlying map.
Tracks the keys that are either added/replaced/modified in addedOrUpdatedKeys.
Tracks the keys that are removed in removedKeys.
Known Limitation: The get and getFirst methods returns the list(since this is an instance of MultivaluedMap) value of the given key. Any direct changes to the underlying list will not be tracked.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.jboss.resteasy.util.CaseInsensitiveMap
CASE_INSENSITIVE_ORDER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
clear()
clone()
computeIfPresent
(String key, BiFunction<? super String, ? super List<V>, ? extends List<V>> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
boolean
equalsIgnoreValueOrder
(jakarta.ws.rs.core.MultivaluedMap<String, V> omap) void
forEach
(BiConsumer<? super String, ? super List<V>> action) getOrDefault
(Object key, List<V> defaultValue) int
hashCode()
boolean
isEmpty()
keySet()
merge
(String key, List<V> value, BiFunction<? super List<V>, ? super List<V>, ? extends List<V>> remappingFunction) void
putIfAbsent
(String key, List<V> value) void
boolean
boolean
void
replaceAll
(BiFunction<? super String, ? super List<V>, ? extends List<V>> function) int
size()
toString()
Collection
<List<V>> values()
Methods inherited from class org.jboss.resteasy.specimpl.MultivaluedTreeMap
addAll, clone, copy, toString
-
Constructor Details
-
TrackingMap
-
-
Method Details
-
getAddedOrUpdatedKeys
-
getRemovedKeys
-
add
-
addFirst
-
put
-
putSingle
-
replace
-
replace
-
addAll
-
addAll
-
merge
-
putAll
-
replaceAll
-
putIfAbsent
-
computeIfAbsent
-
computeIfPresent
-
compute
-
remove
-
remove
-
clear
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
List<V>> - Overrides:
containsKey
in classMultivaluedTreeMap<String,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
List<V>> - Overrides:
containsValue
in classMultivaluedTreeMap<String,
V>
-
entrySet
-
equals
-
get
-
getFirst
-
hashCode
-
isEmpty
-
keySet
-
size
-
values
-
equalsIgnoreValueOrder
- Specified by:
equalsIgnoreValueOrder
in interfacejakarta.ws.rs.core.MultivaluedMap<String,
V> - Overrides:
equalsIgnoreValueOrder
in classMultivaluedTreeMap<String,
V>
-
getOrDefault
-
forEach
-
toString
- Overrides:
toString
in classMultivaluedTreeMap<String,
V>
-
clone
- Overrides:
clone
in classMultivaluedTreeMap<String,
V>
-