edu.isi.pegasus.planner.namespace
Class Namespace.EmptyIterator

java.lang.Object
  extended by edu.isi.pegasus.planner.namespace.Namespace.EmptyIterator
All Implemented Interfaces:
Iterator
Enclosing class:
Namespace

protected class Namespace.EmptyIterator
extends Object
implements Iterator

An empty iterator that allows me to traverse in case of null objects.


Constructor Summary
protected Namespace.EmptyIterator()
           
 
Method Summary
 boolean hasNext()
          Always returns false, as an empty iterator.
 Object next()
          Returns a null as we are iterating over nothing.
 void remove()
          Returns a false, as no removal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Namespace.EmptyIterator

protected Namespace.EmptyIterator()
Method Detail

hasNext

public boolean hasNext()
Always returns false, as an empty iterator.

Specified by:
hasNext in interface Iterator
Returns:
false

next

public Object next()
Returns a null as we are iterating over nothing.

Specified by:
next in interface Iterator
Returns:
null

remove

public void remove()
Returns a false, as no removal

Specified by:
remove in interface Iterator


Copyright © 2011 The University of Southern California. All Rights Reserved.