org.inria.ns.reflex.util
Class CollectionsHelper.SingleObjectIterator

java.lang.Object
  extended by org.inria.ns.reflex.util.CollectionsHelper.SingleObjectIterator
All Implemented Interfaces:
Iterator
Enclosing class:
CollectionsHelper

public static class CollectionsHelper.SingleObjectIterator
extends Object
implements Iterator

An iterator that wraps a single object.


Constructor Summary
CollectionsHelper.SingleObjectIterator(Object obj)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionsHelper.SingleObjectIterator

public CollectionsHelper.SingleObjectIterator(Object obj)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator