Package weka.core
Class FastVector.FastVectorEnumeration
java.lang.Object
weka.core.FastVector.FastVectorEnumeration
- All Implemented Interfaces:
Enumeration,RevisionHandler
- Enclosing class:
- FastVector
public class FastVector.FastVectorEnumeration
extends Object
implements Enumeration, RevisionHandler
Class for enumerating the vector's elements.
-
Constructor Summary
ConstructorsConstructorDescriptionFastVectorEnumeration(FastVector vector) Constructs an enumeration.FastVectorEnumeration(FastVector vector, int special) Constructs an enumeration with a special element. -
Method Summary
Modifier and TypeMethodDescriptionReturns the revision string.final booleanTests if there are any more elements to enumerate.final ObjectReturns the next element.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
FastVectorEnumeration
Constructs an enumeration.- Parameters:
vector- the vector which is to be enumerated
-
FastVectorEnumeration
Constructs an enumeration with a special element. The special element is skipped during the enumeration.- Parameters:
vector- the vector which is to be enumeratedspecial- the index of the special element
-
-
Method Details
-
hasMoreElements
public final boolean hasMoreElements()Tests if there are any more elements to enumerate.- Specified by:
hasMoreElementsin interfaceEnumeration- Returns:
- true if there are some elements left
-
nextElement
Returns the next element.- Specified by:
nextElementin interfaceEnumeration- Returns:
- the next element to be enumerated
-
getRevision
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-