@ThreadSafe public final class SpoolT extends Vector<Hold> implements Spool
capacityIncrement, elementCount, elementData
modCount
Constructor and Description |
---|
SpoolT() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Hold hold) |
boolean |
addAll(int index,
Collection<? extends Hold> c) |
void |
addElement(Hold hold) |
void |
insertElementAt(Hold hold,
int index) |
boolean |
isUnwinding()
Returns true if the spool is unwinding or already unwound.
|
List<Hold> |
subList(int fromIndex,
int toIndex) |
boolean |
unwind()
Commences to unwind this spool.
|
boolean |
unwind(Catcher<Hold> catcher)
Commences to unwind this spool, removing and releasing each of its holds.
|
add, addAll, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, toArray, toArray, toString, trimToSize
public SpoolT()
public boolean addAll(int index, Collection<? extends Hold> c)
public boolean isUnwinding()
Spool
isUnwinding
in interface Spool
public boolean unwind()
Spool
public boolean unwind(Catcher<Hold> catcher)
Spool
public void addElement(Hold hold)
addElement
in class Vector<Hold>
public void insertElementAt(Hold hold, int index)
insertElementAt
in class Vector<Hold>