Package org.reactfx.collection
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>> boolean
isEmpty()
private static <E> QuasiListModification
<? extends E> join
(List<QuasiListModification<? extends E>> mods, List<? extends E> gone, int goneOffset) private void
offsetPendingModifications
(int from, int offset) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.reactfx.collection.AbstractListModificationSequence
getModificationCount, iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
modifications
-
-
Constructor Details
-
ListChangeAccumulator
public ListChangeAccumulator() -
ListChangeAccumulator
-
-
Method Details
-
asListChangeAccumulator
Description copied from interface:ListModificationSequence
May 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:
asListChangeAccumulator
in interfaceListModificationSequence<E>
-
asListChange
Description copied from interface:ListModificationSequence
May 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:
asListChange
in interfaceListModificationSequence<E>
-
getModifications
- Specified by:
getModifications
in 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)
-