Top Description Methods
org.reactfx.collection

pack-priv Interface ListModificationLike<E>

Known Direct Subinterfaces
org.reactfx.collection.MaterializedListModification, org.reactfx.collection.QuasiListModification, org.reactfx.collection.ListModification
Type Parameters
<E>
type of list elements.
Imports
java.util.List, javafx.collections.ObservableList

Describes an elementary modification made to a list. Elementary modification is represented by the position in the list where the change occurred (getFrom()), a list of elements removed by the modification (getRemoved()), and the number of added elements replacing the removed elements (getAddedSize()).

Subtypes of this interface differ in how they refer to the added elements:

Method Summary

Modifier and TypeMethod and Description
public int
getAddedSize()

Returns the number of items added by this change.

public int
getFrom()

Returns the position in the list where this change occurred.

public List<? extends E>
getRemoved()

Returns an immutable list of elements removed by this change.

public default int
getRemovedSize()

Returns the number of items removed by this change.

public default int
getTo()

Returns the end position of the change in the modified list.

Method Detail

getAddedSizeback to summary
public int getAddedSize()

Returns the number of items added by this change.

getFromback to summary
public int getFrom()

Returns the position in the list where this change occurred.

getRemovedback to summary
public List<? extends E> getRemoved()

Returns an immutable list of elements removed by this change. Before the change occurred, the first element of the returned list was at index 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().

getRemovedSizeback to summary
public default int getRemovedSize()

Returns the number of items removed by this change.

getToback to summary
public default int getTo()

Returns the end position of the change in the modified list. The returned value is equal to getFrom() + getAddedSize().