Class ListChangeAccumulator<E>
java.lang.Object
org.reactfx.collection.ListChangeAccumulator<E>
- All Implemented Interfaces:
Iterable<QuasiListModification<? extends E>>, AbstractListModificationSequence<E, QuasiListModification<? extends E>>, ListModificationSequence<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(QuasiListChange<? extends E> change) add(QuasiListModification<? extends E> mod) May be destructive for this object.May be destructive for this object.private static <E> QuasiListModification<E> combine(QuasiListModification<? extends E> former, QuasiListModification<? extends E> latter) drop(int n) fetch()List<QuasiListModification<? extends E>> booleanisEmpty()private static <E> QuasiListModification<? extends E> join(List<QuasiListModification<? extends E>> mods, List<? extends E> gone, int goneOffset) private voidoffsetPendingModifications(int from, int offset) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AbstractListModificationSequence
getModificationCount, iteratorMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
modifications
-
-
Constructor Details
-
ListChangeAccumulator
public ListChangeAccumulator() -
ListChangeAccumulator
-
-
Method Details
-
asListChangeAccumulator
Description copied from interface:ListModificationSequenceMay be destructive for this object. Therefore, this object should not be used after the call to this method, unless stated otherwise by the implementing class/interface.- Specified by:
asListChangeAccumulatorin interfaceListModificationSequence<E>
-
asListChange
Description copied from interface:ListModificationSequenceMay be destructive for this object. Therefore, this object should not be used after the call to this method, unless stated otherwise by the implementing class/interface.- Specified by:
asListChangein interfaceListModificationSequence<E>
-
getModifications
- Specified by:
getModificationsin interfaceAbstractListModificationSequence<E, QuasiListModification<? extends E>>
-
isEmpty
public boolean isEmpty() -
fetch
-
drop
-
add
-
add
-
add
public ListChangeAccumulator<E> add(javafx.collections.ListChangeListener.Change<? extends E> change) -
offsetPendingModifications
private void offsetPendingModifications(int from, int offset) -
join
private static <E> QuasiListModification<? extends E> join(List<QuasiListModification<? extends E>> mods, List<? extends E> gone, int goneOffset) -
combine
private static <E> QuasiListModification<E> combine(QuasiListModification<? extends E> former, QuasiListModification<? extends E> latter)
-