Top Fields Constructors Methods
com.sun.javafx.collections

public Class SetAdapterChange<E>

extends SetChangeListener.Change<E>
Class Inheritance
Imports
javafx.collections.ObservableSet, .SetChangeListener, .SetChangeListener.Change

Field Summary

Modifier and TypeField and Description
private final SetChangeListener.Change<? extends E>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public E
public E
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public boolean
wasAdded()

Implements abstract javafx.collections.SetChangeListener.Change.wasAdded.

If this change is a result of add operation.

public boolean
wasRemoved()

Implements abstract javafx.collections.SetChangeListener.Change.wasRemoved.

If this change is a result of removal operation.

Inherited from javafx.collections.SetChangeListener.Change:
getSet

Field Detail

changeback to summary
private final SetChangeListener.Change<? extends E> change

Constructor Detail

SetAdapterChangeback to summary
public SetAdapterChange(ObservableSet<E> set, SetChangeListener.Change<? extends E> change)

Method Detail

getElementAddedback to summary
public E getElementAdded()

Implements abstract javafx.collections.SetChangeListener.Change.getElementAdded.

Doc from javafx.collections.SetChangeListener.Change.getElementAdded.

Get the new element. Return null if this is a removal.

Returns:E

the element that was just added

Annotations
@Override
getElementRemovedback to summary
public E getElementRemoved()

Implements abstract javafx.collections.SetChangeListener.Change.getElementRemoved.

Doc from javafx.collections.SetChangeListener.Change.getElementRemoved.

Get the old element. Return null if this is an addition.

Returns:E

the element that was just removed

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
wasAddedback to summary
public boolean wasAdded()

Implements abstract javafx.collections.SetChangeListener.Change.wasAdded.

Doc from javafx.collections.SetChangeListener.Change.wasAdded.

If this change is a result of add operation.

Returns:boolean

true if a new element was added to the set

Annotations
@Override
wasRemovedback to summary
public boolean wasRemoved()

Implements abstract javafx.collections.SetChangeListener.Change.wasRemoved.

Doc from javafx.collections.SetChangeListener.Change.wasRemoved.

If this change is a result of removal operation.

Returns:boolean

true if an old element was removed from the set

Annotations
@Override