Package org.eclipse.emf.common.util
Interface EList<E>
- All Superinterfaces:
Collection<E>,Iterable<E>,List<E>,SequencedCollection<E>
- All Known Subinterfaces:
EMap<K,,V> NotifyingList<E>
- All Known Implementing Classes:
AbstractEList,AbstractTreeIterator,ArrayDelegatingEList,BasicEList,BasicEList.FastCompare,BasicEList.UnmodifiableEList,BasicEMap,BasicNotifierImpl.EAdapterList,DelegatingEList,DelegatingEList.UnmodifiableEList,DelegatingNotifyingListImpl,NotificationChainImpl,NotifyingListImpl,UniqueEList,UniqueEList.FastCompare
A list that supports move.
-
Method Summary
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
move
Moves the object to the new position, if is in the list.- Parameters:
newPosition- the position of the object after the move.object- the object to move.
-
move
Moves the object from the old position to the new position.- Parameters:
newPosition- the position of the object after the move.oldPosition- the position of the object before the move.- Returns:
- the moved object.
-