CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.util
Class SequenceEnumeration

java.lang.Object
  extended by ch.randelshofer.util.SequenceEnumeration
All Implemented Interfaces:
java.util.Enumeration

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

This class Encapsulates two Enumerations.

Version:
1.0 2001-07-26
Author:
Werner Randelshofer, Hausmatt 10, Immensee, CH-6405, Switzerland

Constructor Summary
SequenceEnumeration(java.util.Enumeration first, java.util.Enumeration second)
           
 
Method Summary
 boolean hasMoreElements()
          Tests if this enumeration contains next element.
 java.lang.Object nextElement()
          Returns the next element of this enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceEnumeration

public SequenceEnumeration(java.util.Enumeration first,
                           java.util.Enumeration second)
Parameters:
first - The first enumeration.
second - The second enumeration.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Tests if this enumeration contains next element.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if this enumeration contains it false otherwise.

nextElement

public java.lang.Object nextElement()
Returns the next element of this enumeration.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
the next element of this enumeration.
Throws:
java.util.NoSuchElementException - if no more elements exist.

(c) Werner Randelshofer.
All rights reserved.