Package org.reactfx.collection
Class ListModificationImpl<E>
- java.lang.Object
-
- org.reactfx.collection.ListModificationImpl<E>
-
- All Implemented Interfaces:
ListModification<E>,ListModificationLike<E>
final class ListModificationImpl<E> extends java.lang.Object implements ListModification<E>
-
-
Constructor Summary
Constructors Constructor Description ListModificationImpl(int position, java.util.List<? extends E> removed, int addedSize, javafx.collections.ObservableList<E> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAddedSize()Returns the number of items added by this change.java.util.List<? extends E>getAddedSubList()intgetFrom()Returns the position in the list where this change occurred.java.util.List<? extends E>getRemoved()Returns an immutable list of elements removed by this change.java.lang.StringtoString()ListModification<E>trim()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.reactfx.collection.ListModification
materialize
-
Methods inherited from interface org.reactfx.collection.ListModificationLike
getRemovedSize, getTo
-
-
-
-
Method Detail
-
getFrom
public int getFrom()
Description copied from interface:ListModificationLikeReturns the position in the list where this change occurred.- Specified by:
getFromin interfaceListModificationLike<E>
-
getRemoved
public java.util.List<? extends 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
public java.util.List<? extends 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
trim
public ListModification<E> trim()
- Specified by:
trimin interfaceListModification<E>
-
-