org.malai.mapping
Interface IActiveList<E>

Type Parameters:
E - The type of the elements contained in the active list.
All Superinterfaces:
java.util.Collection<E>, java.lang.Iterable<E>, java.util.List<E>
All Known Implementing Classes:
ActiveArrayList

public interface IActiveList<E>
extends java.util.List<E>

This interface completes the List interface with necessary methods.

This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

05/15/2010

Since:
0.2
Version:
0.2
Author:
Arnaud BLOUIN

Method Summary
 void move(int srcIndex, int targetIndex)
          Moves the object located at the position srcIndex to the location specified by the targetIndex.
 
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

void move(int srcIndex,
          int targetIndex)
Moves the object located at the position srcIndex to the location specified by the targetIndex.

Parameters:
srcIndex - The position of the object to move.
targetIndex - The final position of the moved object.
Throws:
java.lang.ArrayIndexOutOfBoundsException - if one of the given index is not valid.
Since:
0.2