byucc.jhdl.base.list
Class VectorListEnumeration

java.lang.Object
  extended bybyucc.jhdl.base.list.VectorListEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class VectorListEnumeration
extends java.lang.Object
implements java.util.Enumeration

This class allows public access to list traversals.


Constructor Summary
VectorListEnumeration(VectorList vl)
          Initializer
 
Method Summary
 boolean hasMoreElements()
          Returns true if more elements remain, useful as a while loop condition
 java.lang.Object nextElement()
          Returns the next element in the enumeration, advancing the enumeration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorListEnumeration

public VectorListEnumeration(VectorList vl)
Initializer

Parameters:
vl - a VectorList that this enumeration will cover
Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns true if more elements remain, useful as a while loop condition

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if more elements remain.

nextElement

public java.lang.Object nextElement()
Returns the next element in the enumeration, advancing the enumeration

Specified by:
nextElement in interface java.util.Enumeration
Returns:
the next element
Throws:
java.util.NoSuchElementException - if already at end


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.