org.eclipse.emf.common.util
Interface EList

All Superinterfaces:
Collection, List
All Known Subinterfaces:
EMap, FeatureMap, FeatureMap.Internal, InternalEList, InternalEList.Unsettable, NotifyingList
All Known Implementing Classes:
BasicEList, BasicEMap, BasicFeatureMap, BasicInternalEList, DelegatingEcoreEList, DelegatingEcoreEList.UnmodifiableEList, DelegatingEList, DelegatingFeatureMap, DelegatingNotifyingListImpl, EContentsEList, EcoreEList, EcoreEList.UnmodifiableEList, EcoreEMap, FeatureMapUtil.FeatureEList, FeatureMapUtil.FeatureFeatureMap, ItemProviderAdapter.ModifiableSingletonEList, NotifyingListImpl, ResourceImpl.ContentsEList, ResourceSetImpl.ResourcesEList

public interface EList
extends List

A list that supports move.


Method Summary
 Object move(int newPosition, int oldPosition)
          Moves the object from the old position to the new position.
 void move(int newPosition, Object object)
          Moves the object to the new position, if is in the list.
 
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, retainAll, set, size, subList, toArray, toArray
 

Method Detail

move

public void move(int newPosition,
                 Object object)
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

public Object move(int newPosition,
                   int oldPosition)
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.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.