public static class NonIterableChange.SimplePermutationChange<E> extends NonIterableChange<E>
NonIterableChange.GenericAddRemoveChange<E>, NonIterableChange.SimpleAddChange<E>, NonIterableChange.SimplePermutationChange<E>, NonIterableChange.SimpleRemovedChange<E>, NonIterableChange.SimpleUpdateChange<E>
Constructor and Description |
---|
SimplePermutationChange(int from,
int to,
int[] permutation,
ObservableList<E> list) |
Modifier and Type | Method and Description |
---|---|
protected int[] |
getPermutation()
If this change is an permutation, it returns an integer array
that describes the permutation.
|
List<E> |
getRemoved()
An immutable list of removed/replaced elements.
|
checkState, getFrom, getTo, next, reset, toString
getAddedSize, getAddedSubList, getList, getPermutation, getRemovedSize, wasAdded, wasPermutated, wasRemoved, wasReplaced, wasUpdated
public SimplePermutationChange(int from, int to, int[] permutation, ObservableList<E> list)
public List<E> getRemoved()
ListChangeListener.Change
getRemoved
in class ListChangeListener.Change<E>
protected int[] getPermutation()
ListChangeListener.Change
ListChangeListener.Change.getFrom()
of the list. The same applies
for the last index and ListChangeListener.Change.getTo()
.
The method is used by ListChangeListener.Change.wasPermutated()
and ListChangeListener.Change.getPermutation(int)
methods.getPermutation
in class NonIterableChange<E>
Copyright © 2020. All rights reserved.