M - the model typeV - the value type (for the changed property in the model)public static class Store.PropertyChange<M,V> extends Object implements Store.Change<M,V>
| Constructor and Description |
|---|
Store.PropertyChange(ValueProvider<M,V> propertyAccess,
V value)
Creates a new property change.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getChangeTag()
Gets a tag for this change, so that two changes, both making
modifications to the same field, can replace each other, as they must be
mutually exclusive
|
V |
getValue()
Gets the value that will be set on the model in modify(M).
|
boolean |
isCurrentValue(M model)
Checks to see if the given model already has the change
|
void |
modify(M model)
Make the change recorded here to the given model
|
public Store.PropertyChange(ValueProvider<M,V> propertyAccess, V value)
propertyAccess - the changed propertyvalue - the changed valuepublic final Object getChangeTag()
Store.ChangegetChangeTag in interface Store.Change<M,V>public V getValue()
Store.ChangegetValue in interface Store.Change<M,V>public boolean isCurrentValue(M model)
Store.ChangeisCurrentValue in interface Store.Change<M,V>model - the modelpublic final void modify(M model)
Store.Changemodify in interface Store.Change<M,V>model - the modelCopyright © 2012. All Rights Reserved.