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 Details

    • FastVectorEnumeration

      public FastVectorEnumeration(FastVector vector)
      Constructs an enumeration.
      Parameters:
      vector - the vector which is to be enumerated
    • FastVectorEnumeration

      public FastVectorEnumeration(FastVector vector, int special)
      Constructs an enumeration with a special element. The special element is skipped during the enumeration.
      Parameters:
      vector - the vector which is to be enumerated
      special - the index of the special element
  • Method Details

    • hasMoreElements

      public final boolean hasMoreElements()
      Tests if there are any more elements to enumerate.
      Specified by:
      hasMoreElements in interface Enumeration
      Returns:
      true if there are some elements left
    • nextElement

      public final Object nextElement()
      Returns the next element.
      Specified by:
      nextElement in interface Enumeration
      Returns:
      the next element to be enumerated
    • getRevision

      public String getRevision()
      Returns the revision string.
      Specified by:
      getRevision in interface RevisionHandler
      Returns:
      the revision