Interface ListModificationSequence<E>
- Type Parameters:
E- type of list elements
- All Superinterfaces:
Iterable<QuasiListModification<? extends E>>
- All Known Subinterfaces:
QuasiListChange<E>
- All Known Implementing Classes:
ListChangeAccumulator
public interface ListModificationSequence<E>
Common supertype for
QuasiListChange and ListChangeAccumulator.-
Method Summary
Modifier and TypeMethodDescriptionMay be destructive for this object.May be destructive for this object.default intList<? extends QuasiListModification<? extends E>> default Iterator<QuasiListModification<? extends E>> iterator()Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
asListChange
QuasiListChange<E> asListChange()May be destructive for this object. Therefore, this object should not be used after the call to this method, unless stated otherwise by the implementing class/interface. -
asListChangeAccumulator
ListChangeAccumulator<E> asListChangeAccumulator()May be destructive for this object. Therefore, this object should not be used after the call to this method, unless stated otherwise by the implementing class/interface. -
getModifications
List<? extends QuasiListModification<? extends E>> getModifications() -
iterator
-
getModificationCount
default int getModificationCount()
-