| Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--uk.co.ist.mwt.Sorter
| Constructor Summary | |
| Sorter(Comparable[] objects)
Initialises the class; copies the array into a private sorted version of itself. |
|
| Method Summary | |
| boolean | hasMoreElements()
When enumerating the results of a sort, tells you if there are any more elements to be enumerated |
| java.lang.Object | nextElement()
When enumerating the results of a sort, returns the next element |
| int | numElements()
Returns the number of elements in the array we're dealing with |
| void | resetEnum()
When enumerating, reset so that the enumeration can begin from the start |
| Methods inherited from class java.lang.Object | |
| equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Constructor Detail |
public Sorter(Comparable[] objects)
| Method Detail |
public void resetEnum()
public int numElements()
public boolean hasMoreElements()
public java.lang.Object nextElement()
| Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||