se.chalmers.cs.gf.util
Class SingletonIterator<A>

java.lang.Object
  extended by se.chalmers.cs.gf.util.SingletonIterator<A>

public class SingletonIterator<A>
extends java.lang.Object

An iterator which contains a single, non-removeable element.


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

Method Detail

hasNext

public boolean hasNext()

next

public A next()

remove

public void remove()