T
- public final class IteratorMessageSequence<T> extends AbstractMessageSequence<T>
MessageSequence
that delegates its hasNext()
and
next()
methods to an Iterator
, and has no estimated sizeUNKNOWN_SIZE
Constructor and Description |
---|
IteratorMessageSequence(Iterator<T> iter) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Whether this sequence has more elements.
|
T |
next()
The next element of the sequence.
|
int |
size()
The number of members of the sequence.
|
isEmpty, remove
public int size()
MessageSequence
MessageSequence.UNKNOWN_SIZE
,
if it is unknownpublic boolean hasNext()
MessageSequence
Iterator.hasNext()
public T next()
MessageSequence
MessageSequence.size()
is not equal to
MessageSequence.UNKNOWN_SIZE
, this means that this method may be invoked
approximately up to MessageSequence.size()
times.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.