private static class ListChangeBuilder.SingleChange<E> extends ListChangeListener.Change<E>
| Modifier and Type | Field and Description |
|---|---|
private ListChangeBuilder.SubChange<E> |
change |
private boolean |
onChange |
| Constructor and Description |
|---|
SingleChange(ListChangeBuilder.SubChange<E> change,
ObservableListBase<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, wasReplacedprivate final ListChangeBuilder.SubChange<E> change
private boolean onChange
public SingleChange(ListChangeBuilder.SubChange<E> change, ObservableListBase<E> list)
public boolean next()
ListChangeListener.Changenext in class ListChangeListener.Change<E>public void reset()
ListChangeListener.Changereset in class ListChangeListener.Change<E>public int getFrom()
ListChangeListener.ChangegetFrom in class ListChangeListener.Change<E>public int getTo()
ListChangeListener.ChangegetTo in class ListChangeListener.Change<E>ListChangeListener.Change.getFrom()public java.util.List<E> getRemoved()
ListChangeListener.ChangegetRemoved in class ListChangeListener.Change<E>protected int[] getPermutation()
ListChangeListener.ChangeListChangeListener.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.ChangewasUpdated in class ListChangeListener.Change<E>private void checkState()
public java.lang.String toString()
toString in class java.lang.Object