Class ListModificationImpl<E>
java.lang.Object
org.reactfx.collection.ListModificationImpl<E>
- All Implemented Interfaces:
ListModification<E>, ListModificationLike<E>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionListModificationImpl(int position, List<? extends E> removed, int addedSize, javafx.collections.ObservableList<E> list) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ListModification
materializeMethods inherited from interface ListModificationLike
getRemovedSize, getTo
-
Field Details
-
position
private int position -
removed
-
addedSize
private int addedSize -
list
-
-
Constructor Details
-
ListModificationImpl
-
-
Method Details
-
getFrom
public int getFrom()Description copied from interface:ListModificationLikeReturns the position in the list where this change occurred.- Specified by:
getFromin interfaceListModificationLike<E>
-
getRemoved
Description copied from interface:ListModificationLikeReturns an immutable list of elements removed by this change. Before the change occurred, the first element of the returned list was at indexListModificationLike.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 byListModificationLike.getRemovedSize().- Specified by:
getRemovedin interfaceListModificationLike<E>
-
getAddedSubList
- Specified by:
getAddedSubListin interfaceListModification<E>
-
getAddedSize
public int getAddedSize()Description copied from interface:ListModificationLikeReturns the number of items added by this change.- Specified by:
getAddedSizein interfaceListModificationLike<E>
-
toString
-
trim
- Specified by:
trimin interfaceListModification<E>
-