Class MoveableArrayList<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.eclipse.net4j.util.collection.MoveableArrayList<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess, MoveableList<E>

public class MoveableArrayList<E> extends ArrayList<E> implements MoveableList<E>
A list with O(1) effort for random access.

Whenever possible EMF's BasicEList should be used in favour of this list implementation.

Author:
Eike Stepper
See Also:
  • Constructor Details

    • MoveableArrayList

      public MoveableArrayList(int initialCapacity)
  • Method Details

    • move

      public void move(int newPosition, Object object)
      Since:
      3.0
    • move

      public E move(int targetIndex, int sourceIndex)
      Specified by:
      move in interface MoveableList<E>