public class SourceAdapterChange<E> extends ListChangeListener.Change<E>
Constructor and Description |
---|
SourceAdapterChange(ObservableList<E> list,
ListChangeListener.Change<? extends E> change) |
Modifier and Type | Method and Description |
---|---|
int |
getFrom()
If wasAdded is true, the interval contains all the values that were added.
|
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.
|
int |
getTo()
The end of the change interval.
|
boolean |
next()
Go to the next change.
|
void |
reset()
Reset to the initial stage.
|
String |
toString() |
boolean |
wasUpdated()
Indicates that the elements between getFrom() (inclusive)
to getTo() exclusive has changed.
|
getAddedSize, getAddedSubList, getList, getPermutation, getRemovedSize, wasAdded, wasPermutated, wasRemoved, wasReplaced
public SourceAdapterChange(ObservableList<E> list, ListChangeListener.Change<? extends E> change)
public boolean next()
ListChangeListener.Change
next
in class ListChangeListener.Change<E>
public void reset()
ListChangeListener.Change
reset
in class ListChangeListener.Change<E>
public int getTo()
ListChangeListener.Change
getTo
in class ListChangeListener.Change<E>
ListChangeListener.Change.getFrom()
public List<E> getRemoved()
ListChangeListener.Change
getRemoved
in class ListChangeListener.Change<E>
public int getFrom()
ListChangeListener.Change
getFrom
in class ListChangeListener.Change<E>
public boolean wasUpdated()
ListChangeListener.Change
wasUpdated
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 ListChangeListener.Change<E>
Copyright © 2020. All rights reserved.