scale.common
Class DoubleIterator<T>
java.lang.Object
scale.common.DoubleIterator<T>
- All Implemented Interfaces:
- java.util.Iterator<T>
public class DoubleIterator<T>
- extends java.lang.Object
- implements java.util.Iterator<T>
This class generates an iterator for two elements.
$Id: DoubleIterator.java,v 1.6 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 |
DoubleIterator
public DoubleIterator(T element1,
T element2)
- Parameters:
element1
- the first object returned by the enumerationelement2
- the second object returned by the enumeration
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<T>
next
public T next()
- Specified by:
next
in interface java.util.Iterator<T>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<T>