public class Dequeue extends Base implements Enumeration, Iterator, Cloneable, Serializable
Base.LoggingWriter, Base.StackFrame
Constructor and Description |
---|
Dequeue()
Constructs a dequeue.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(Object o)
Adds an element to the dequeue.
|
int |
capacity()
Determine the current capacity of this dequeue.
|
Object |
clone()
Creates a clone of the dequeue.
|
protected void |
grow()
Increase the capacity of the Dequeue.
|
boolean |
hasMoreElements()
Determines if the Dequeue contains more elements.
|
boolean |
hasNext()
Tests if this Iterator contains more elements.
|
boolean |
isEmpty()
Determines if the dequeue is empty.
|
boolean |
isFull()
Determines if the dequeue is full.
|
Object |
next()
Returns the next element of this Iterator.
|
protected int |
next(int i)
Determines the index following the passed index for storing or accessing an item from the m_ao storage.
|
Object |
nextElement()
Returns the next element from the Dequeue.
|
protected int |
prev(int i)
Determines the index preceding the passed index for storing or accessing an item from the m_ao storage.
|
void |
putBackElement(Object o)
Returns the most recently returned element to the Dequeue.
|
void |
remove()
Remove the last-returned element that was returned by the Iterator.
|
void |
removeAllElements()
Removes all items from the dequeue.
|
int |
size()
Determine the current number of objects in this dequeue.
|
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement() throws NoSuchElementException
nextElement
in interface Enumeration
NoSuchElementException
- If no more elements exist.public boolean hasNext()
public Object next()
public void remove()
public void addElement(Object o)
o
- object to add to the Dequeuepublic void putBackElement(Object o)
NoSuchElementException
- If the element that is being put back is no longer in the Dequeue.public void removeAllElements()
public int capacity()
public int size()
public boolean isEmpty()
public boolean isFull()
public Object clone()
protected int next(int i)
protected int prev(int i)
protected void grow()