Package com.sun.mail.imap.protocol
Class MessageSet
java.lang.Object
com.sun.mail.imap.protocol.MessageSet
This class holds the 'start' and 'end' for a range of messages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageSet[]createMessageSets(int[] msgs) Convert an array of integers into an array of MessageSetsintsize()Count the total number of elements in a MessageSetstatic intsize(MessageSet[] msgsets) static StringtoString(MessageSet[] msgsets) Convert an array of MessageSets into an IMAP sequence range
-
Field Details
-
start
public int start -
end
public int end
-
-
Constructor Details
-
MessageSet
public MessageSet() -
MessageSet
public MessageSet(int start, int end)
-
-
Method Details
-
size
public int size()Count the total number of elements in a MessageSet- Returns:
- how many messages in this MessageSet
-
createMessageSets
Convert an array of integers into an array of MessageSets- Parameters:
msgs- the messages- Returns:
- array of MessageSet objects
-
toString
Convert an array of MessageSets into an IMAP sequence range- Parameters:
msgsets- the MessageSets- Returns:
- IMAP sequence string
-
size
-