Class SingleEventIterator

java.lang.Object
com.espertech.esper.common.internal.collection.SingleEventIterator
All Implemented Interfaces:
Iterator<EventBean>

public class SingleEventIterator extends Object implements Iterator<EventBean>
A utility class for an iterator that has one element.
  • Field Details

  • Constructor Details

    • SingleEventIterator

      public SingleEventIterator(EventBean eventBean)
      Constructor, takes the single event to iterate over as a parameter. The single event can be null indicating that there are no more elements.
      Parameters:
      eventBean - single bean that the iterator returns, or null for an empty iterator
  • Method Details