Interface WritableMapValue<K,V>
-
- All Superinterfaces:
ReadableContainerValue<Map<K,V>,V>
,ReadableMapValue<K,V>
,ReadableObjectValue<Map<K,V>>
,ReadableTypedObjectValue<Map<K,V>>
,ReadableTypedValue<Map<K,V>>
,ReadableValue<Map<K,V>>
,Supplier<Map<K,V>>
,WritableContainerValue<Map<K,V>,V>
,WritableObjectValue<Map<K,V>>
,WritableValue<Map<K,V>>
- All Known Subinterfaces:
WritableMapProperty<K,V>
- All Known Implementing Classes:
MapProperty
public interface WritableMapValue<K,V> extends WritableContainerValue<Map<K,V>,V>, ReadableMapValue<K,V>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Map<K,V>
getOrCreate()
-
Methods inherited from interface io.github.mmm.value.observable.container.ReadableContainerValue
isEmpty
-
Methods inherited from interface io.github.mmm.value.observable.container.map.ReadableMapValue
getValueClass, size
-
Methods inherited from interface io.github.mmm.value.observable.object.ReadableObjectValue
getSafe, getValue
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
Methods inherited from interface io.github.mmm.value.observable.object.WritableObjectValue
setValue
-
Methods inherited from interface io.github.mmm.value.WritableValue
set
-
-
-
-
Method Detail
-
getOrCreate
default Map<K,V> getOrCreate()
- Specified by:
getOrCreate
in interfaceWritableContainerValue<K,V>
- Returns:
- the current null-safe
value
. UnlikeReadableValue.getSafe()
this method will modify and initialize thevalue
with an empty mutable container if it wasnull
.
-
-