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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidclear()clone()computeIfPresent(String key, BiFunction<? super String, ? super List<V>, ? extends List<V>> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanbooleanequalsIgnoreValueOrder(jakarta.ws.rs.core.MultivaluedMap<String, V> omap) voidforEach(BiConsumer<? super String, ? super List<V>> action) getOrDefault(Object key, List<V> defaultValue) inthashCode()booleanisEmpty()keySet()merge(String key, List<V> value, BiFunction<? super List<V>, ? super List<V>, ? extends List<V>> remappingFunction) voidputIfAbsent(String key, List<V> value) voidbooleanbooleanvoidreplaceAll(BiFunction<? super String, ? super List<V>, ? extends List<V>> function) intsize()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
- Specified by:
replaceAllin interfaceMap<String,List<V>>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<String,List<V>>
-
computeIfAbsent
public List<V> computeIfAbsent(String key, Function<? super String, ? extends List<V>> mappingFunction) - Specified by:
computeIfAbsentin interfaceMap<String,List<V>>
-
computeIfPresent
public List<V> computeIfPresent(String key, BiFunction<? super String, ? super List<V>, ? extends List<V>> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<String,List<V>>
-
compute
-
remove
-
remove
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,List<V>> - Overrides:
containsKeyin classMultivaluedTreeMap<String,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,List<V>> - Overrides:
containsValuein classMultivaluedTreeMap<String,V>
-
entrySet
-
equals
-
get
-
getFirst
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
size
public int size() -
values
-
equalsIgnoreValueOrder
- Specified by:
equalsIgnoreValueOrderin interfacejakarta.ws.rs.core.MultivaluedMap<String,V> - Overrides:
equalsIgnoreValueOrderin classMultivaluedTreeMap<String,V>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<String,List<V>>
-
forEach
-
toString
- Overrides:
toStringin classMultivaluedTreeMap<String,V>
-
clone
- Overrides:
clonein classMultivaluedTreeMap<String,V>
-