KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > common > util > EList


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: EList.java,v 1.2 2005/06/08 06:19:08 nickb Exp $
16  */

17 package org.eclipse.emf.common.util;
18
19
20 import java.util.List JavaDoc;
21
22
23 /**
24  * A list that supports move.
25  */

26 public interface EList extends List JavaDoc
27 {
28   /**
29    * Moves the object to the new position, if is in the list.
30    * @param newPosition the position of the object after the move.
31    * @param object the object to move.
32    */

33   void move(int newPosition, Object JavaDoc object);
34
35   /**
36    * Moves the object from the old position to the new position.
37    * @param newPosition the position of the object after the move.
38    * @param oldPosition the position of the object before the move.
39    * @return the moved object.
40    */

41   Object JavaDoc move(int newPosition, int oldPosition);
42 }
43
Popular Tags