Interface WritableContainerValue<C,E>
- Type Parameters:
C
- type of the containervalue
.E
- type of the contained elements (collection element
ormap value
).
- All Superinterfaces:
ReadableContainerValue<C,
,E> ReadableObjectValue<C>
,ReadableTypedObjectValue<C>
,ReadableTypedValue<C>
,ReadableValue<C>
,Supplier<C>
,WritableObjectValue<C>
,WritableValue<C>
- All Known Subinterfaces:
WritableCollectionValue<C,
,E> WritableListValue<E>
,WritableMapValue<K,
,V> WritableSetValue<E>
public interface WritableContainerValue<C,E>
extends ReadableContainerValue<C,E>, WritableObjectValue<C>
- Since:
- 1.0.0
-
Method Summary
Methods inherited from interface io.github.mmm.value.observable.container.ReadableContainerValue
isEmpty, size
Methods inherited from interface io.github.mmm.value.observable.object.ReadableObjectValue
getSafe, getValue
Methods inherited from interface io.github.mmm.value.ReadableTypedValue
getValueClass
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 Details
-
getOrCreate
C getOrCreate()- Returns:
- the current null-safe
value
. UnlikeReadableValue.getSafe()
this method will modify and initialize thevalue
with an empty mutable container if it wasnull
.
-