|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.misc.monotone.EnumerationIterator
public class EnumerationIterator
Implementation of a simple wrapper class for the Enumeration
interface.
This makes it possible to use an Enumeration as if
it were an Iterator.
This implementation is part of the master's thesis: "Studie en implementatie van instantie-gebaseerde algoritmen voor gesuperviseerd rangschikken", Stijn Lievens, Ghent University, 2004.
| Constructor Summary | |
|---|---|
EnumerationIterator(java.util.Enumeration e)
Construct an EnumerationIterator on basis of on
Enumeration. |
|
| Method Summary | |
|---|---|
java.lang.String |
getRevision()
Returns the revision string. |
boolean |
hasNext()
Returns true if there are more elements in the iteration. |
java.lang.Object |
next()
Returns the next element in the iteration. |
void |
remove()
Since the iteration is based on an enumeration, removal of elements is not supported. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumerationIterator(java.util.Enumeration e)
EnumerationIterator on basis of on
Enumeration.
e - the Enumeration on which the
Iterator will be based| Method Detail |
|---|
public final boolean hasNext()
true if there are more elements in the iteration.
hasNext in interface java.util.Iterator true if there are more elements in the iteration,
false otherwise
public final java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementException - if the requested element does not existpublic final void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - every time this method is invokedpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||