|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.util.SortedEnumeration
public class SortedEnumeration
An enumeration that returns objects in sorted order.
Supported API: true
Supported API: true
| 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 |
| Constructor Detail |
|---|
public SortedEnumeration(Enumeration source,
CollationKeyFactory key_factory)
Enumeration containing the elements of another Enumeration.
Elements are sorted into ascending order.
source - source Enumerationcollation_key_factory - factory to produce collation keys for the elementsorder - sort order (ASCENDING or DECENDING)
public SortedEnumeration(Enumeration source,
CollationKeyFactory key_factory,
int order)
Enumeration containing the elements of another Enumeration.
source - source Enumerationcollation_key_factory - factory to produce collation keys for the elementsorder - sort order (ASCENDING or DECENDING)| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface Enumerationpublic Object nextElement()
nextElement in interface Enumerationpublic int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||