Class PropertyUpdatedEventImpl
java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
org.refcodes.observer.AbstractActionEvent<PropertyAction,ObservableProperties>
org.refcodes.properties.ext.observer.PropertyEventImpl
org.refcodes.properties.ext.observer.PropertyUpdatedEventImpl
- All Implemented Interfaces:
org.refcodes.mixin.ActionAccessor<PropertyAction>
,org.refcodes.mixin.KeyAccessor<String>
,org.refcodes.mixin.SourceAccessor<ObservableProperties>
,org.refcodes.mixin.ValueAccessor<String>
,org.refcodes.observer.GenericActionEvent<PropertyAction,
,ObservableProperties> org.refcodes.observer.GenericEvent<ObservableProperties>
,PropertyEvent
,PropertyUpdatedEvent
,org.refcodes.struct.Property
,org.refcodes.struct.Relation<String,
String>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,
B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A, B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.KeyAccessor
org.refcodes.mixin.KeyAccessor.KeyBuilder<K extends Object,
B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K, B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object> Nested classes/interfaces inherited from interface org.refcodes.struct.Property
org.refcodes.struct.Property.PropertyBuilder
Nested classes/interfaces inherited from interface org.refcodes.struct.Relation
org.refcodes.struct.Relation.RelationBuilder<K extends Object,
V extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor
org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,
B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V, B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object> -
Field Summary
Fields inherited from class org.refcodes.observer.AbstractActionEvent
_action
-
Constructor Summary
ConstructorDescriptionPropertyUpdatedEventImpl
(String aKey, String aValue, String aPreviousValue, ObservableProperties aSource) Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
.PropertyUpdatedEventImpl
(org.refcodes.struct.Property aProperty, String aPreviousValue, ObservableProperties aSource) Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property which has been replaced by the value as ofValueAccessor.getValue()
.Methods inherited from class org.refcodes.properties.ext.observer.PropertyEventImpl
getKey, getValue
Methods inherited from class org.refcodes.observer.AbstractActionEvent
getAction
Methods inherited from class org.refcodes.observer.AbstractEvent
getSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.ActionAccessor
getAction
Methods inherited from interface org.refcodes.mixin.KeyAccessor
getKey
Methods inherited from interface org.refcodes.struct.Property
toProperty
Methods inherited from interface org.refcodes.mixin.SourceAccessor
getSource
Methods inherited from interface org.refcodes.mixin.ValueAccessor
getValue, getValueOr
-
Constructor Details
-
PropertyUpdatedEventImpl
public PropertyUpdatedEventImpl(org.refcodes.struct.Property aProperty, String aPreviousValue, ObservableProperties aSource) Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
.- Parameters:
aProperty
- The key and value pair of theProperty
being involved in the event.aPreviousValue
- The value previously being set (and now being overwritten) for the according property being updated.aSource
- The source from which this event originated.
-
PropertyUpdatedEventImpl
public PropertyUpdatedEventImpl(String aKey, String aValue, String aPreviousValue, ObservableProperties aSource) Constructs aPropertyUpdatedEventImpl
with the given key and value representing the affectedProperty
.- Parameters:
aKey
- The key of theProperty
being involved in the event.aValue
- The value of theProperty
being involved in the event.aPreviousValue
- The value previously being set (and now being overwritten) for the according property being updated.aSource
- The source from which this event originated.
-
-
Method Details
-
getPreviousValue
Returns the value of the property which has been replaced by the value as ofValueAccessor.getValue()
.- Specified by:
getPreviousValue
in interfacePropertyUpdatedEvent
- Returns:
- The previously set value before it has been changed.
-