public abstract class NonIterableChange<E> extends ListChangeListener.Change<E>
Modifier and Type | Class and Description |
---|---|
static class |
NonIterableChange.GenericAddRemoveChange<E> |
static class |
NonIterableChange.SimpleAddChange<E> |
static class |
NonIterableChange.SimplePermutationChange<E> |
static class |
NonIterableChange.SimpleRemovedChange<E> |
static class |
NonIterableChange.SimpleUpdateChange<E> |
Modifier | Constructor and Description |
---|---|
protected |
NonIterableChange(int from,
int to,
ObservableList<E> list) |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getTo()
The end of the change interval.
|
boolean |
next()
Go to the next change.
|
void |
reset()
Reset to the initial stage.
|
String |
toString() |
getAddedSize, getAddedSubList, getList, getPermutation, getRemoved, getRemovedSize, wasAdded, wasPermutated, wasRemoved, wasReplaced, wasUpdated
protected NonIterableChange(int from, int to, ObservableList<E> list)
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()
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 next()
ListChangeListener.Change
next
in class ListChangeListener.Change<E>
public void reset()
ListChangeListener.Change
reset
in class ListChangeListener.Change<E>
public void checkState()
Copyright © 2020. All rights reserved.