T - the source value typeU - the queued element typesR - the result value typepublic abstract class IxSourceQueuedIterator<T,U,R> extends IxSourceIterator<T,R>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Object |
NULL |
itdone, hasValue, value| Constructor and Description |
|---|
IxSourceQueuedIterator(java.util.Iterator<T> it) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear() |
protected <S> void |
foreach(IxConsumer2<? super U,S> action,
S state) |
protected U |
fromObject(java.lang.Object value)
Cast the object back to a typed value.
|
protected boolean |
isEmpty() |
protected boolean |
offer(java.lang.Object value) |
protected java.lang.Object |
peek() |
protected java.lang.Object |
poll() |
protected java.lang.Object |
toObject(U value)
Cast the value into an object and turn
a null value into a sentinel value.
|
hasNext, moveNext, next, removepublic IxSourceQueuedIterator(java.util.Iterator<T> it)
protected final java.lang.Object toObject(U value)
value - the value to castfromObject(Object)protected final U fromObject(java.lang.Object value)
value - the value to cast backprotected final boolean offer(java.lang.Object value)
protected final java.lang.Object poll()
protected final java.lang.Object peek()
protected final boolean isEmpty()
protected final void clear()
protected final <S> void foreach(IxConsumer2<? super U,S> action, S state)