|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the message payload typepublic interface MessageSequence<T>
A sequence of messages
Field Summary | |
---|---|
static int |
UNKNOWN_SIZE
|
Method Summary | |
---|---|
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. |
int |
size()
The number of members of the sequence. |
Field Detail |
---|
static final int UNKNOWN_SIZE
Method Detail |
---|
boolean isEmpty()
int 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.
next
in interface Iterator<T>
void remove()
MessageSequence
do not allow removal of elements.
remove
in interface Iterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |