public class ArrayMessageSequence extends AbstractMessageSequence<Object>
UNKNOWN_SIZE| Constructor and Description |
|---|
ArrayMessageSequence(Object[] array) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Whether this sequence has more elements.
|
Object |
next()
The next element of the sequence.
|
int |
size()
The number of members of the sequence.
|
isEmpty, removepublic ArrayMessageSequence(Object[] array)
public int size()
MessageSequenceMessageSequence.UNKNOWN_SIZE,
if it is unknownpublic boolean hasNext()
MessageSequenceIterator.hasNext()public Object next()
MessageSequenceMessageSequence.size() is not equal to
MessageSequence.UNKNOWN_SIZE, this means that this method may be invoked
approximately up to MessageSequence.size() times.Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.