Interface StateList

All Superinterfaces:
Collection, List

public interface StateList
extends List

A list of states of a discrete node. This interface just adds a reorder method to the java.util.List interface.

Method Summary
 boolean reorder(Object obj, int index)
          Moves the specfied object to the specified index.
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


public boolean reorder(Object obj,
                       int index)
Moves the specfied object to the specified index. If the specified object is not contained in this list, this method does nothing and returns false.

obj - object to move.
index - new index to move to.
true if the object was reordered.
IndexOutOfBoundsException - if index < 0 || index >= size().