public interface ListModification<E>
| Modifier and Type | Method and Description |
|---|---|
int |
getAddedSize()
Returns the number of items added by this change.
|
java.util.List<? extends E> |
getAddedSubList() |
int |
getFrom()
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.
|
default int |
getRemovedSize()
Returns the number of items removed by this change.
|
default int |
getTo()
Returns the end position of the change in the modified list.
|
default MaterializedListModification<E> |
materialize() |
ListModification<E> |
trim() |
java.util.List<? extends E> getAddedSubList()
ListModification<E> trim()
default MaterializedListModification<E> materialize()
int getFrom()
default int getRemovedSize()
int getAddedSize()
default int getTo()
getFrom() + getAddedSize().java.util.List<? extends E> getRemoved()
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().