byucc.jhdl.base.list
Class LinkedListEnumeration

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

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

This class allows public access to list traversals.


Constructor Summary
LinkedListEnumeration(LinkedList ll)
          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

LinkedListEnumeration

public LinkedListEnumeration(LinkedList ll)
Initializer

Parameters:
ll - a LinkedList 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.