Package com.sun.javafx.collections
Class NonIterableChange.SimplePermutationChange<E>
java.lang.Object
javafx.collections.ListChangeListener.Change<E>
com.sun.javafx.collections.NonIterableChange<E>
com.sun.javafx.collections.NonIterableChange.SimplePermutationChange<E>
- Enclosing class:
NonIterableChange<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.javafx.collections.NonIterableChange
NonIterableChange.GenericAddRemoveChange<E>, NonIterableChange.SimpleAddChange<E>, NonIterableChange.SimplePermutationChange<E>, NonIterableChange.SimpleRemovedChange<E>, NonIterableChange.SimpleUpdateChange<E>
-
Constructor Summary
ConstructorDescriptionSimplePermutationChange
(int from, int to, int[] permutation, ObservableList<E> list) -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]
If this change is an permutation, it returns an integer array that describes the permutation.An immutable list of removed/replaced elements.Methods inherited from class com.sun.javafx.collections.NonIterableChange
checkState, getFrom, getTo, next, reset, toString
Methods inherited from class javafx.collections.ListChangeListener.Change
getAddedSize, getAddedSubList, getList, getPermutation, getRemovedSize, wasAdded, wasPermutated, wasRemoved, wasReplaced, wasUpdated
-
Constructor Details
-
SimplePermutationChange
-
-
Method Details
-
getRemoved
Description copied from class:ListChangeListener.Change
An immutable list of removed/replaced elements. If no elements were removed from the list, an empty list is returned.- Specified by:
getRemoved
in classListChangeListener.Change<E>
- Returns:
- a list with all the removed elements
-
getPermutation
protected int[] getPermutation()Description copied from class:ListChangeListener.Change
If this change is an permutation, it returns an integer array that describes the permutation. This array maps directly from the previous indexes to the new ones. This method is not publicly accessible and therefore can return an array safely. The 0 index of the array corresponds to indexListChangeListener.Change.getFrom()
of the list. The same applies for the last index andListChangeListener.Change.getTo()
. The method is used byListChangeListener.Change.wasPermutated()
andListChangeListener.Change.getPermutation(int)
methods.- Overrides:
getPermutation
in classNonIterableChange<E>
- Returns:
- empty array if this is not permutation or an integer array containing the permutation
-