Package org.reactfx.collection
Interface MaterializedListModification<E>
-
- All Superinterfaces:
ListModificationLike<E>
- All Known Implementing Classes:
MaterializedListModificationImpl
public interface MaterializedListModification<E> extends ListModificationLike<E>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static <E> MaterializedListModification<E>
create(int pos, java.util.List<? extends E> removed, java.util.List<? extends E> added)
Doesn't create defensive copies of the passed lists.java.util.List<? extends E>
getAdded()
default int
getAddedSize()
Returns the number of items added by this change.default MaterializedListModification<E>
trim()
-
Methods inherited from interface org.reactfx.collection.ListModificationLike
getFrom, getRemoved, getRemovedSize, getTo
-
-
-
-
Method Detail
-
create
static <E> MaterializedListModification<E> create(int pos, java.util.List<? extends E> removed, java.util.List<? extends E> added)
Doesn't create defensive copies of the passed lists. Therefore, they must not be modified later.
-
getAdded
java.util.List<? extends E> getAdded()
-
getAddedSize
default int getAddedSize()
Description copied from interface:ListModificationLike
Returns the number of items added by this change.- Specified by:
getAddedSize
in interfaceListModificationLike<E>
-
trim
default MaterializedListModification<E> trim()
-
-