|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.SortedEnumeration
An enumeration that returns objects in sorted order.
Supported API: true
Supported API: true
Nested Class Summary | |
(package private) static class |
SortedEnumeration.SortEntry
|
(package private) static class |
SortedEnumeration.SortPredicate
|
Field Summary | |
static int |
ASCENDING
|
private int |
count
|
static int |
DESCENDING
|
private static long |
serialVersionUID
|
private Object[] |
sorted
|
private static String |
versionID
|
Constructor Summary | |
SortedEnumeration(Enumeration source,
CollationKeyFactory key_factory)
Construct a sorted Enumeration containing the elements of another Enumeration . |
|
SortedEnumeration(Enumeration source,
CollationKeyFactory key_factory,
int order)
Construct a sorted Enumeration containing the elements of another Enumeration . |
Method Summary | |
boolean |
hasMoreElements()
Supported API: true |
Object |
nextElement()
Supported API: true |
int |
size()
Return the number of elements remaining in the enumeration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private static final long serialVersionUID
public static final int ASCENDING
public static final int DESCENDING
private Object[] sorted
private int count
Constructor Detail |
public SortedEnumeration(Enumeration source, CollationKeyFactory key_factory)
Enumeration
containing the elements of another Enumeration
.
Elements are sorted into ascending order.
source
- source Enumeration
public SortedEnumeration(Enumeration source, CollationKeyFactory key_factory, int order)
Enumeration
containing the elements of another Enumeration
.
source
- source Enumeration
order
- sort order (ASCENDING or DECENDING)Method Detail |
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration
public int size()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |