java.lang.Object
javafx.collections.SetChangeListener.Change<E>
- Type Parameters:
- E- element type
- Enclosing interface:
- SetChangeListener<E>
public abstract static class SetChangeListener.Change<E> extends Object
An elementary change done to an ObservableSet.
 Change contains information about an add or remove operation.
 Note that adding element that is already in the set does not
 modify the set and hence no change will be generated.
- Since:
- JavaFX 2.1
- 
Constructor SummaryConstructors Constructor Description Change(ObservableSet<E> set)Constructs a change associated with a set.
- 
Method SummaryModifier and Type Method Description abstract EgetElementAdded()Get the new element.abstract EgetElementRemoved()Get the old element.ObservableSet<E>getSet()An observable set that is associated with the change.abstract booleanwasAdded()If this change is a result of add operation.abstract booleanwasRemoved()If this change is a result of removal operation.
- 
Constructor Details- 
ChangeConstructs a change associated with a set.- Parameters:
- set- the source of the change
 
 
- 
- 
Method Details- 
getSetAn observable set that is associated with the change.- Returns:
- the source set
 
- 
wasAddedpublic abstract boolean wasAdded()If this change is a result of add operation.- Returns:
- true if a new element was added to the set
 
- 
wasRemovedpublic abstract boolean wasRemoved()If this change is a result of removal operation.- Returns:
- true if an old element was removed from the set
 
- 
getElementAddedGet the new element. Return null if this is a removal.- Returns:
- the element that was just added
 
- 
getElementRemovedGet the old element. Return null if this is an addition.- Returns:
- the element that was just removed
 
 
-