T - the message payload typepublic interface MessageSequence<T> extends Iterator<T>
| Modifier and Type | Field and Description |
|---|---|
static Integer |
UNKNOWN_SIZE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Whether this sequence has more elements.
|
boolean |
isEmpty()
If the sequence is empty
|
T |
next()
The next element of the sequence.
|
void |
remove()
Unsupported operation.
|
Integer |
size()
The number of members of the sequence.
|
forEachRemainingstatic final Integer UNKNOWN_SIZE
boolean isEmpty()
Integer size()
UNKNOWN_SIZE, if it is unknownboolean hasNext()
hasNext in interface Iterator<T>Iterator.hasNext()T next()
size() is not equal to UNKNOWN_SIZE, this means that
this method may be invoked approximately up to size() times.void remove()
MessageSequence do not allow removal of elements.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.