private static class ListChangeBuilder.IterableChange<E> extends ListChangeListener.Change<E>
Modifier and Type | Field and Description |
---|---|
private ListChangeBuilder.SubChange[] |
changes |
private int |
cursor |
Modifier | Constructor and Description |
---|---|
private |
IterableChange(ListChangeBuilder.SubChange[] changes,
ObservableList<E> list) |
Modifier and Type | Method and Description |
---|---|
private void |
checkState() |
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.
|
java.util.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.
|
java.lang.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
private ListChangeBuilder.SubChange[] changes
private int cursor
private IterableChange(ListChangeBuilder.SubChange[] changes, ObservableList<E> list)
public boolean next()
ListChangeListener.Change
next
in class ListChangeListener.Change<E>
public void reset()
ListChangeListener.Change
reset
in class ListChangeListener.Change<E>
public int getFrom()
ListChangeListener.Change
getFrom
in class ListChangeListener.Change<E>
public int getTo()
ListChangeListener.Change
getTo
in class ListChangeListener.Change<E>
ListChangeListener.Change.getFrom()
public java.util.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 ListChangeListener.Change<E>
public boolean wasUpdated()
ListChangeListener.Change
wasUpdated
in class ListChangeListener.Change<E>
private void checkState()
public java.lang.String toString()
toString
in class java.lang.Object