java.lang.Object
eu.hansolo.toolbox.observables.ObservableMap<K,V>
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionObservableMap(int capacity) ObservableMap(int capacity, float loadFactor) ObservableMap(Map<? extends K, ? extends V> map) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapChangeObserver(EvtType type, EvtObserver<MapChangeEvt<K, V>> observer) voidclear()clone()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()voidfireMapChangeEvt(MapChangeEvt<K, V> evt) voidforEach(BiConsumer<? super K, ? super V> action) getOrDefault(Object key, V defaultValue) booleanisEmpty()keySet()voidputIfAbsent(K key, V value) booleanvoidvoidremoveMapChangeObserver(EvtType type, EvtObserver<MapChangeEvt<K, V>> observer) booleanvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) intsize()values()
-
Constructor Details
-
ObservableMap
public ObservableMap() -
ObservableMap
public ObservableMap(int capacity) -
ObservableMap
public ObservableMap(int capacity, float loadFactor) -
ObservableMap
-
-
Method Details
-
get
-
put
-
putAll
-
remove
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
keySet
-
values
-
entrySet
-
size
public int size() -
isEmpty
public boolean isEmpty() -
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<K,V>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K,V>
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
-
merge
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V>
-
clone
-
addMapChangeObserver
-
removeMapChangeObserver
-
removeAllMapChangeObservers
public void removeAllMapChangeObservers() -
fireMapChangeEvt
-