Package jadex.commons.future
Class IntermediateFutureIterator<E>
- java.lang.Object
-
- jadex.commons.future.IntermediateFutureIterator<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
public class IntermediateFutureIterator<E> extends java.lang.Object implements java.util.Iterator<E>
Helper class for iterating over the results of an intermediate future. Uses a suspendable for realizing blocking operations.
-
-
Field Summary
Fields Modifier and Type Field Description protected IIntermediateFuture<E>
fut
The future.
-
Constructor Summary
Constructors Constructor Description IntermediateFutureIterator(IIntermediateFuture<E> fut)
Create an intermediate future iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Check for more results.E
next()
Get next result.void
remove()
Not supported.
-
-
-
Field Detail
-
fut
protected IIntermediateFuture<E> fut
The future.
-
-
Constructor Detail
-
IntermediateFutureIterator
public IntermediateFutureIterator(IIntermediateFuture<E> fut)
Create an intermediate future iterator.
-
-