com.lonniepryor.blues.util
Class EnumerationChain

java.lang.Object
  |
  +--com.lonniepryor.blues.util.EnumerationChain
All Implemented Interfaces:
java.util.Enumeration

public final class EnumerationChain
extends java.lang.Object
implements java.util.Enumeration

Simple implementation of the Composite pattern for java.util.Enumeration. NOTE: this class is NOT thread-safe and instances may only be used on a single thread at a time.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Constructor Summary
EnumerationChain(java.util.Enumeration first, java.util.Enumeration second)
          Creates a new EnumerationChain object.
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationChain

public EnumerationChain(java.util.Enumeration first,
                        java.util.Enumeration second)
Creates a new EnumerationChain object.

Parameters:
first - The first enumeration.
second - The second enumeration.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration


Copyright © 2003 Blues Framework. All Rights Reserved.