scale.common
Class DoubleIterator<T>

java.lang.Object
  extended by 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.


Constructor Summary
DoubleIterator(T element1, T element2)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleIterator

public DoubleIterator(T element1,
                      T element2)
Parameters:
element1 - the first object returned by the enumeration
element2 - the second object returned by the enumeration
Method Detail

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>