@ThreadSafe public final class SpoolT extends Vector<Hold> implements Spool
capacityIncrement, elementCount, elementDatamodCount| 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, trimToSizepublic SpoolT()
public boolean addAll(int index, Collection<? extends Hold> c)
public boolean isUnwinding()
SpoolisUnwinding in interface Spoolpublic boolean unwind()
Spoolpublic boolean unwind(Catcher<Hold> catcher)
Spoolpublic void addElement(Hold hold)
addElement in class Vector<Hold>public void insertElementAt(Hold hold, int index)
insertElementAt in class Vector<Hold>