byucc.jhdl.base.list
Class TreeListEnumeration

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

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

This class allows public access to list traversals.


Constructor Summary
TreeListEnumeration(TreeList tl)
          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

TreeListEnumeration

public TreeListEnumeration(TreeList tl)
Initializer

Parameters:
tl - a TreeList 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.