| Constructor and Description |
|---|
ObservableSelfPopulatingMap(Map<K,V> delegate,
BiPredicate<K,V> beforePutValidator,
BiConsumer<K,V> onPutAction,
Function<K,V> onGetPopulatorAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
V |
compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction)
Same approach as computeIfAbsent: validate inside the remapping function
so that a rejection prevents the value from ever reaching the delegate.
|
V |
computeIfAbsent(K key,
Function<? super K,? extends V> mappingFunction)
Validation happens before the value is written to the delegate by wrapping
the mapping function so we can intercept the produced value first.
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key)
If a populator was provided and the key is missing, produces a value,
stores it (triggering validation + notification), and returns it.
|
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeIfPresent, equals, forEach, getOrDefault, hashCode, remove, replace, replace, replaceAllpublic V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent in interface Map<K,V>public V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
public V get(Object key)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>
Connector Packaging PERSPRACTICALNURSE 4.9.5 API
Copyright © {inceptionYear}-2026 eHealth. All Rights Reserved.