|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cid.distribution.ListMessageEnumeration
public class ListMessageEnumeration
A message iterator wrapper for the List interface.
Constructor Summary | |
---|---|
ListMessageEnumeration(DistributionMessage message)
Builds a new instance that will enumerate a single message. |
|
ListMessageEnumeration(java.util.List<DistributionMessage> list)
Builds a new instance that wraps the given list. |
Method Summary | |
---|---|
static ListMessageEnumeration |
getEmptyEnumeration()
Returns an empty ListMessageEnumeration. |
boolean |
hasMoreMessages()
Tests if this enumeration contains more elements. |
DistributionMessage |
nextMessage()
Returns the next message in this MessageEnumeration. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListMessageEnumeration(java.util.List<DistributionMessage> list)
list
- public ListMessageEnumeration(DistributionMessage message)
message
- Method Detail |
---|
public static ListMessageEnumeration getEmptyEnumeration()
public boolean hasMoreMessages()
hasMoreMessages
in interface MessageEnumeration
DistributionException
public DistributionMessage nextMessage()
nextMessage
in interface MessageEnumeration
DistributionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |