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>
ChangeAwareContainer
that is aList
.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
remove(int from, int to)
Removes
the 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)
Removes
the elements within the given range. Behaves likesublist(from, to).clear()
but can be implemented more efficient.- Parameters:
from
- the startindex
of the range to remove (inclusive).to
- the endindex
of the range to remove (exclusive).- Throws:
IndexOutOfBoundsException
- if an illegal range is provided.
-
-