T - public final class IteratorMessageSequence extends AbstractMessageSequence
MessageSequence that delegates its hasNext() and next() methods to an Iterator, and has no
estimated sizeUNKNOWN_SIZE| Constructor and Description |
|---|
IteratorMessageSequence(Iterator iter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Whether this sequence has more elements.
|
Object |
next()
The next element of the sequence.
|
Integer |
size()
The number of members of the sequence.
|
isEmpty, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic IteratorMessageSequence(Iterator iter)
public Integer 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–2017 MuleSoft, Inc.. All rights reserved.