|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mailbox.MessageRange
public class MessageRange
Used to define a range of messages by uid or msn, or a individual message by
key or message object.
The type of the set should be defined by using an appropriate constructor.
| Nested Class Summary | |
|---|---|
static class |
MessageRange.Type
|
| Method Summary | |
|---|---|
static MessageRange |
all()
Constructs a range consisting of all messages. |
static MessageRange |
from(long from)
Constructs an inclusive, open ended range of messages. |
MessageRange.Type |
getType()
|
long |
getUidFrom()
|
long |
getUidTo()
|
boolean |
includes(long uid)
Return true if the uid is within the range |
static MessageRange |
one(long uid)
Constructs a range consisting of a single message only. |
static MessageRange |
range(long from,
long to)
Constructs an inclusive ranges of messages. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static MessageRange one(long uid)
uid - UID of the message
public static MessageRange all()
public static MessageRange range(long from,
long to)
from(long)
used where appropriate.
from - first message UIDto - last message UID
public static MessageRange from(long from)
from - first messege UID in range
public MessageRange.Type getType()
public long getUidFrom()
public long getUidTo()
public boolean includes(long uid)
uid -
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||