Class SingleObjectIterator<T>
java.lang.Object
com.espertech.esper.common.internal.collection.SingleObjectIterator<T>
- All Implemented Interfaces:
Iterator<T>
A utility class for an iterator that has zero or one element and can be reset with a new value.
-
Constructor Summary
ConstructorDescriptionCtor for an iterator starting out empty.SingleObjectIterator
(T object) Constructor, takes the single object to iterate over as a parameter. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
SingleObjectIterator
Constructor, takes the single object to iterate over as a parameter. The single object can be null indicating that there are no more elements.- Parameters:
object
- single object that the iterator returns, or null for an empty iterator
-
SingleObjectIterator
public SingleObjectIterator()Ctor for an iterator starting out empty.
-
-
Method Details