public class WekaEnumeration<E> extends java.lang.Object implements java.util.Enumeration<E>, RevisionHandler
Constructor and Description |
---|
WekaEnumeration(java.util.List<E> vector)
Constructs an enumeration.
|
WekaEnumeration(java.util.List<E> vector,
int special)
Constructs an enumeration with a special element.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRevision()
Returns the revision string.
|
boolean |
hasMoreElements()
Tests if there are any more elements to enumerate.
|
E |
nextElement()
Returns the next element.
|
public WekaEnumeration(java.util.List<E> vector)
vector
- the vector which is to be enumeratedpublic WekaEnumeration(java.util.List<E> vector, int special)
vector
- the vector which is to be enumeratedspecial
- the index of the special elementpublic final boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration<E>
public final E nextElement()
nextElement
in interface java.util.Enumeration<E>
public java.lang.String getRevision()
getRevision
in interface RevisionHandler