com.espertech.esper.collection
Class EventDistinctIterator

java.lang.Object
  extended by com.espertech.esper.collection.EventDistinctIterator
All Implemented Interfaces:
java.util.Iterator<EventBean>

public class EventDistinctIterator
extends java.lang.Object
implements java.util.Iterator<EventBean>

Iterator for obtaining distinct events.


Constructor Summary
EventDistinctIterator(java.util.Iterator<EventBean> sourceIterator, EventType eventType)
          Ctor.
 
Method Summary
 boolean hasNext()
           
 EventBean next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDistinctIterator

public EventDistinctIterator(java.util.Iterator<EventBean> sourceIterator,
                             EventType eventType)
Ctor.

Parameters:
sourceIterator - is the source event iterator
eventType - type of event
Method Detail

next

public EventBean next()
Specified by:
next in interface java.util.Iterator<EventBean>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<EventBean>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<EventBean>

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com