Interface ChangeAwareList<E>
-
- Type Parameters:
E- type of thecontained elements.
- All Superinterfaces:
ChangeAwareCollection<E,ListChange<E>,ListChangeListener<E>>,ChangeAwareContainer<E,ListChange<E>,ListChangeListener<E>>,Collection<E>,EventSource<ListChange<E>,ListChangeListener<E>>,Iterable<E>,List<E>
public interface ChangeAwareList<E> extends ChangeAwareCollection<E,ListChange<E>,ListChangeListener<E>>, List<E>
ChangeAwareContainerthat is aList.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidremove(int from, int to)Removesthe elements within the given range.-
Methods inherited from interface io.github.mmm.value.observable.container.collection.ChangeAwareCollection
addAll, removeAll, retainAll, setAll, setAll
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
remove
void remove(int from, int to)Removesthe elements within the given range. Behaves likesublist(from, to).clear()but can be implemented more efficient.- Parameters:
from- the startindexof the range to remove (inclusive).to- the endindexof the range to remove (exclusive).- Throws:
IndexOutOfBoundsException- if an illegal range is provided.
-
-