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

public interface EList<E> extends List<E>
A list that supports move.
  • Method Details

    • move

      void move(int newPosition, E 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

      E 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.