scale.common
Class EmptyIterator<T>

java.lang.Object
  extended by scale.common.EmptyIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public final class EmptyIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Define an empty iterator to return when some complex container structure has not yet been allocated but an iterator of it is requested.

$Id: EmptyIterator.java,v 1.6 2005-02-07 21:28:21 burrill Exp $

Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Constructor Summary
EmptyIterator()
           
 
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

EmptyIterator

public EmptyIterator()
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>