Package org.svvrl.goal.core.aut
Class StateList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.svvrl.goal.core.aut.AbstractGraphicComponentList<State,StateSet,StateList>
org.svvrl.goal.core.aut.StateList
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<AbstractGraphicComponentList<State,StateSet,StateList>>
,java.lang.Iterable<State>
,java.util.Collection<State>
,java.util.List<State>
,java.util.RandomAccess
public class StateList extends AbstractGraphicComponentList<State,StateSet,StateList> implements java.lang.Cloneable
A
StateList
is a sequence of states.- Author:
- Ming-Hsien Tsai
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description State
getFirstState()
Deprecated.State
getLastState()
Deprecated.protected StateList
newInstance()
Returns a new empty list of the same type of this list.protected StateSet
newSetInstance()
Returns a new empty set that can store elements in this list.Methods inherited from class org.svvrl.goal.core.aut.AbstractGraphicComponentList
asSet, clone, compareTo, getFirst, getLast, shift, subList, toString
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray, trimToSize
-
Constructor Details
-
Method Details
-
newInstance
Description copied from class:AbstractGraphicComponentList
Returns a new empty list of the same type of this list.- Specified by:
newInstance
in classAbstractGraphicComponentList<State,StateSet,StateList>
- Returns:
- an empty list
-
newSetInstance
Description copied from class:AbstractGraphicComponentList
Returns a new empty set that can store elements in this list.- Specified by:
newSetInstance
in classAbstractGraphicComponentList<State,StateSet,StateList>
- Returns:
- an empty set
-
getFirstState
Deprecated.UseAbstractGraphicComponentList.getFirst()
instead.- Returns:
- the first state in this list.
-
getLastState
Deprecated.UseAbstractGraphicComponentList.getLast()
instead.- Returns:
- the last state in this list.
-