Top Fields Constructors Methods
org.reactfx.collection

public final Class ListChangeAccumulator<E>

extends Object
implements ListModificationSequence<E>
Class Inheritance
All Implemented Interfaces
org.reactfx.collection.ListModificationSequence, org.reactfx.collection.AbstractListModificationSequence, java.lang.Iterable
Imports
java.util.ArrayList, .Collections, .List, javafx.collections.ListChangeListener, org.reactfx.util.Lists

Field Summary

Modifier and TypeField and Description
private QuasiListChangeImpl<E>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public ListChangeAccumulator<E>
add(QuasiListModification<? extends E> mod)

public ListChangeAccumulator<E>
add(QuasiListChange<? extends E> change)

public ListChangeAccumulator<E>
add(ListChangeListener.Change<? extends E> change)

public QuasiListChange<E>
asListChange()

Implements org.reactfx.collection.ListModificationSequence.asListChange.

May be destructive for this object.

public ListChangeAccumulator<E>
private static <E> QuasiListModification<E>
combine(QuasiListModification<? extends E> former, QuasiListModification<? extends E> latter)

public ListChangeAccumulator<E>
drop(int n)

public QuasiListChange<E>
public List<QuasiListModification<? extends E>>
public boolean
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)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

modificationsback to summary
private QuasiListChangeImpl<E> modifications

Constructor Detail

ListChangeAccumulatorback to summary
public ListChangeAccumulator()
ListChangeAccumulatorback to summary
public ListChangeAccumulator(QuasiListChange<E> change)

Method Detail

addback to summary
public ListChangeAccumulator<E> add(QuasiListModification<? extends E> mod)
addback to summary
public ListChangeAccumulator<E> add(QuasiListChange<? extends E> change)
addback to summary
public ListChangeAccumulator<E> add(ListChangeListener.Change<? extends E> change)
asListChangeback to summary
public QuasiListChange<E> asListChange()

Implements org.reactfx.collection.ListModificationSequence.asListChange.

Doc from org.reactfx.collection.ListModificationSequence.asListChange.

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.

Annotations
@Override
asListChangeAccumulatorback to summary
public ListChangeAccumulator<E> asListChangeAccumulator()

Implements org.reactfx.collection.ListModificationSequence.asListChangeAccumulator.

Doc from org.reactfx.collection.ListModificationSequence.asListChangeAccumulator.

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.

Annotations
@Override
combineback to summary
private static <E> QuasiListModification<E> combine(QuasiListModification<? extends E> former, QuasiListModification<? extends E> latter)
dropback to summary
public ListChangeAccumulator<E> drop(int n)
fetchback to summary
public QuasiListChange<E> fetch()
getModificationsback to summary
public List<QuasiListModification<? extends E>> getModifications()

Implements org.reactfx.collection.AbstractListModificationSequence.getModifications.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()
joinback to summary
private static <E> QuasiListModification<? extends E> join(List<QuasiListModification<? extends E>> mods, List<? extends E> gone, int goneOffset)
offsetPendingModificationsback to summary
private void offsetPendingModifications(int from, int offset)