public class PropertyUpdatedEventImpl extends PropertyEventImpl implements PropertyUpdatedEvent
org.refcodes.mixin.SourceAccessor.SourceMutator<SRC>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC>
org.refcodes.structure.Property.PropertyBuilder
org.refcodes.structure.Relation.RelationBuilder<K,V>
Constructor and Description |
---|
PropertyUpdatedEventImpl(org.refcodes.structure.Property aProperty,
String aPreviousValue,
ObservableProperties aSource)
Constructs a
PropertyUpdatedEventImpl with the given key and
value representing the affected Property . |
PropertyUpdatedEventImpl(String aKey,
String aValue,
String aPreviousValue,
ObservableProperties aSource)
Constructs a
PropertyUpdatedEventImpl with the given key and
value representing the affected Property . |
Modifier and Type | Method and Description |
---|---|
String |
getPreviousValue()
Returns the value of the property which has been replaced by the value as
of
ValueAccessor.getValue() . |
getKey, getValue
public PropertyUpdatedEventImpl(org.refcodes.structure.Property aProperty, String aPreviousValue, ObservableProperties aSource)
PropertyUpdatedEventImpl
with the given key and
value representing the affected Property
.aProperty
- The key and value pair of the Property
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.public PropertyUpdatedEventImpl(String aKey, String aValue, String aPreviousValue, ObservableProperties aSource)
PropertyUpdatedEventImpl
with the given key and
value representing the affected Property
.aKey
- The key of the Property
being involved in the event.aValue
- The value of the Property
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.public String getPreviousValue()
ValueAccessor.getValue()
.getPreviousValue
in interface PropertyUpdatedEvent
Copyright © 2018. All rights reserved.