net.esper.eql.join.rep
Class SingleCursorIterator

java.lang.Object
  extended by net.esper.eql.join.rep.SingleCursorIterator
All Implemented Interfaces:
Iterator<Cursor>

public class SingleCursorIterator
extends Object
implements Iterator<Cursor>

A utility class for an iterator that has one element.


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

Constructor Detail

SingleCursorIterator

public SingleCursorIterator(Cursor cursor)
Ctor.

Parameters:
cursor - is the single element.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Cursor>

next

public Cursor next()
Specified by:
next in interface Iterator<Cursor>

remove

public void remove()
Specified by:
remove in interface Iterator<Cursor>