V
- the type of events.public static class AbstractIndexedEventModel.Entry<V> extends Object
Constructor and Description |
---|
AbstractIndexedEventModel.Entry()
Constructs entry with
null value. |
AbstractIndexedEventModel.Entry(V value)
Constructs entry with a specified value.
|
Modifier and Type | Method and Description |
---|---|
void |
commitChange()
|
V |
getNewValue()
Returns new value of the entry, after the most recent change,
null if the element is removed from the model. |
V |
getValue()
Returns current values of the entry.
|
boolean |
isChanged()
Returns
true if the value was updated and in the most recent change. |
public AbstractIndexedEventModel.Entry()
null
value.public AbstractIndexedEventModel.Entry(V value)
value
- the value.public V getValue()
AbstractIndexedEventModel.modelChanged
it is the value before the change, until commitChange()
method is invoked.public V getNewValue()
null
if the element is removed from the model.
It can differ from value
only during
AbstractIndexedEventModel.modelChanged
method
invocation and until commitChange()
method is invoked.public boolean isChanged()
true
if the value was updated and in the most recent change.
It is set to true
only during
AbstractIndexedEventModel.modelChanged
method
invocation and until commitChange()
method is invoked.true
if the value was updated and in the most recent change.public void commitChange()
Copyright © 2015 Devexperts. All Rights Reserved.