Interface QuasiListModification<E>
public interface QuasiListModification<E>
-
Method Summary
Modifier and TypeMethodDescriptiondefault QuasiListChange<E> static <E> QuasiListModification<E> static <E, F extends E>
QuasiListModification<E> fromCurrentStateOf(javafx.collections.ListChangeListener.Change<F> ch) intReturns the number of items added by this change.intgetFrom()Returns the position in the list where this change occurred.Returns an immutable list of elements removed by this change.default intReturns the number of items removed by this change.default intgetTo()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)
-
Method Details
-
create
-
fromCurrentStateOf
static <E, F extends E> QuasiListModification<E> fromCurrentStateOf(javafx.collections.ListChangeListener.Change<F> ch) -
instantiate
static <E> ListModification<E> instantiate(QuasiListModification<? extends E> template, javafx.collections.ObservableList<E> list) -
materialize
static <E> MaterializedListModification<E> materialize(QuasiListModification<? extends E> template, javafx.collections.ObservableList<E> list) -
instantiate
-
materialize
-
asListChange
-
getFrom
int getFrom()Returns the position in the list where this change occurred. -
getRemovedSize
default int getRemovedSize()Returns the number of items removed by this change. -
getAddedSize
int getAddedSize()Returns the number of items added by this change. -
getTo
default int getTo()Returns the end position of the change in the modified list. The returned value is equal togetFrom() + getAddedSize(). -
getRemoved
Returns an immutable list of elements removed by this change. Before the change occurred, the first element of the returned list was at indexgetFrom()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 bygetRemovedSize().
-