Class MaterializedListModificationImpl<E>
java.lang.Object
org.reactfx.collection.MaterializedListModificationImpl<E>
- All Implemented Interfaces:
ListModificationLike<E>, MaterializedListModification<E>
final class MaterializedListModificationImpl<E>
extends Object
implements MaterializedListModification<E>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMaterializedListModificationImpl(int from, List<? extends E> removed, List<? extends E> added) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ListModificationLike
getRemovedSize, getToMethods inherited from interface MaterializedListModification
getAddedSize, trim
-
Field Details
-
from
private final int from -
removed
-
added
-
-
Constructor Details
-
MaterializedListModificationImpl
-
-
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>
-
getAdded
- Specified by:
getAddedin interfaceMaterializedListModification<E>
-