Module io.github.mmm.property
Interface WritableMapProperty<K,V>
-
- All Superinterfaces:
EventSource<ObservableEvent<Map<K,V>>,ObservableEventListener<? super Map<K,V>>>
,MarshallableObject
,Marshaller<Object>
,Marshalling<Object>
,MarshallingObject
,ObservableContainerValue<Map<K,V>,V>
,ObservableMapValue<K,V>
,ObservableValue<Map<K,V>>
,PropertyPath<Map<K,V>>
,ReadableContainerProperty<Map<K,V>,V>
,ReadableContainerValue<Map<K,V>,V>
,ReadableMapProperty<K,V>
,ReadableMapValue<K,V>
,ReadableObjectValue<Map<K,V>>
,ReadableProperty<Map<K,V>>
,ReadableTypedObjectValue<Map<K,V>>
,ReadableTypedValue<Map<K,V>>
,ReadableValue<Map<K,V>>
,Supplier<Map<K,V>>
,TypedPropertyPath<Map<K,V>>
,UnmarshallableObject
,Unmarshaller<Object>
,Validatable
,WritableContainerProperty<Map<K,V>,V>
,WritableContainerValue<Map<K,V>,V>
,WritableMapValue<K,V>
,WritableObjectValue<Map<K,V>>
,WritableObservableValue<Map<K,V>>
,WritableProperty<Map<K,V>>
,WritableValue<Map<K,V>>
- All Known Implementing Classes:
MapProperty
public interface WritableMapProperty<K,V> extends ReadableMapProperty<K,V>, WritableContainerProperty<Map<K,V>,V>, WritableMapValue<K,V>
- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from interface io.github.mmm.property.container.ReadableContainerProperty
METADATA_KEY_COMPONENT_PROPERTY
-
Fields inherited from interface io.github.mmm.property.container.map.ReadableMapProperty
METADATA_KEY_KEY_PROPERTY
-
Fields inherited from interface io.github.mmm.property.WritableProperty
NO_PROPERTIES
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeAwareMap<K,V>
getChangeAwareValue()
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.marshall.MarshallableObject
write, writeObject
-
Methods inherited from interface io.github.mmm.value.observable.ObservableValue
toString
-
Methods inherited from interface io.github.mmm.property.container.ReadableContainerProperty
emptyProperty, sizeProperty
-
Methods inherited from interface io.github.mmm.value.observable.container.ReadableContainerValue
isEmpty
-
Methods inherited from interface io.github.mmm.property.container.map.ReadableMapProperty
getKeyProperty
-
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.property.ReadableProperty
getMetadata, getName, isReadOnly, isTransient, isValid
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
Methods inherited from interface io.github.mmm.marshall.UnmarshallableObject
read, readObject
-
Methods inherited from interface io.github.mmm.validation.Validatable
validate
-
Methods inherited from interface io.github.mmm.property.container.WritableContainerProperty
getValueProperty, isChangeAware
-
Methods inherited from interface io.github.mmm.value.observable.container.map.WritableMapValue
getOrCreate
-
Methods inherited from interface io.github.mmm.value.observable.object.WritableObjectValue
setValue
-
Methods inherited from interface io.github.mmm.value.observable.WritableObservableValue
bindOneWay, bindTwoWay, isBoundOneWay, unbindOneWay, unbindTwoWay
-
Methods inherited from interface io.github.mmm.property.WritableProperty
copy, getReadOnly
-
Methods inherited from interface io.github.mmm.value.WritableValue
set
-
-
-
-
Method Detail
-
getChangeAwareValue
ChangeAwareMap<K,V> getChangeAwareValue()
- Specified by:
getChangeAwareValue
in interfaceWritableContainerProperty<K,V>
- Returns:
- the
value
asChangeAwareContainer
. Will be initialized on the first call of this method. Unlessinitialized
, a container property is lightweight just as other regular properties. Once this method was called, theChangeAwareContainer
is initialized and triggers change events for modifications of the container instance itself. Calls toWritableValue.set(Object)
will implicitly change thisChangeAwareContainer
such that in only contains what the provided new value contains. The instance of theChangeAwareContainer
returned by this method always remains the same.
-
-