public interface QuasiListModification<E>
| Modifier and Type | Method and Description |
|---|---|
default QuasiListChange<E> |
asListChange() |
static <E> QuasiListModification<E> |
create(int position,
java.util.List<? extends E> removed,
int addedSize) |
static <E,F extends E> |
fromCurrentStateOf(javafx.collections.ListChangeListener.Change<F> ch) |
int |
getAddedSize()
Returns the number of items added by this change.
|
int |
getFrom()
Returns the position in the list where this change occurred.
|
java.util.List<? extends E> |
getRemoved()
Returns an immutable list of elements removed by this change.
|
default int |
getRemovedSize()
Returns the number of items removed by this change.
|
default int |
getTo()
Returns the end position of the change in the modified list.
|
default ListModification<E> |
instantiate(javafx.collections.ObservableList<E> list) |
static <E> ListModification<E> |
instantiate(QuasiListModification<? extends E> template,
javafx.collections.ObservableList<E> list) |
default MaterializedListModification<E> |
materialize(javafx.collections.ObservableList<E> list) |
static <E> MaterializedListModification<E> |
materialize(QuasiListModification<? extends E> template,
javafx.collections.ObservableList<E> list) |
static <E> QuasiListModification<E> create(int position, java.util.List<? extends E> removed, int addedSize)
static <E,F extends E> QuasiListModification<E> fromCurrentStateOf(javafx.collections.ListChangeListener.Change<F> ch)
static <E> ListModification<E> instantiate(QuasiListModification<? extends E> template, javafx.collections.ObservableList<E> list)
static <E> MaterializedListModification<E> materialize(QuasiListModification<? extends E> template, javafx.collections.ObservableList<E> list)
default ListModification<E> instantiate(javafx.collections.ObservableList<E> list)
default MaterializedListModification<E> materialize(javafx.collections.ObservableList<E> list)
default QuasiListChange<E> asListChange()
int getFrom()
default int getRemovedSize()
int getAddedSize()
default int getTo()
getFrom() + getAddedSize().java.util.List<? extends E> getRemoved()
getFrom() in the original list.
If no elements were removed by this change, returns an empty list.
The size of the returned list is equal to the value returned by
getRemovedSize().