public class SortedEnumerator extends SimpleEnumerator
Base.LoggingWriter, Base.StackFrame
m_aoItem, m_fForward, m_iItem, m_ofLimit
Constructor and Description |
---|
SortedEnumerator(Enumeration enmr)
Construct a Sorted enumerator.
|
SortedEnumerator(Iterator iterator)
Construct a Sorted enumerator.
|
Modifier and Type | Method and Description |
---|---|
static Object[] |
toArray(Enumeration enmr)
Return the contents of the passed Enumeration as a sorted array.
|
static Object[] |
toArray(Iterator iterator)
Return the contents of the passed Iterator as a sorted array.
|
hasMoreElements, hasNext, next, nextElement, remove, toArray, toArray, toArray, toArray, toArray, toArray
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, getProcessRandom, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SortedEnumerator(Enumeration enmr)
enmr
- the Enumeration that needs to be sortedpublic SortedEnumerator(Iterator iterator)
iterator
- the Iterator that needs to be sortedpublic static Object[] toArray(Enumeration enmr)
enmr
- an Enumeration of potentially unsorted objects