scale.common
Class DoubleEnumeration<T>
java.lang.Object
scale.common.DoubleEnumeration<T>
- All Implemented Interfaces:
- java.util.Enumeration<T>
public class DoubleEnumeration<T>
- extends java.lang.Object
- implements java.util.Enumeration<T>
This class generates an enumeration for two elements.
$Id: DoubleEnumeration.java,v 1.10 2005-02-07 21:28:20 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleEnumeration
public DoubleEnumeration(T element1,
T element2)
- Parameters:
element1
- the first object returned by the enumerationelement2
- the second object returned by the enumeration
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration<T>
nextElement
public T nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration<T>