|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.mail.store.search.SearchKey SK.gnome.dwarf.mail.store.search.SizeKey
This key matches the given size and the actual message size.
Field Summary | |
static int |
LARGER
This key type specifies that the values larger than the given size will be matched. |
protected long |
size
The matched size. |
static int |
SMALLER
This key type specifies that the values smaller than the given size will be matched. |
Fields inherited from class SK.gnome.dwarf.mail.store.search.SearchKey |
type |
Constructor Summary | |
SizeKey(int type,
long size)
Creates a new SizeKey. |
Method Summary | |
long |
getSize()
Returns the matches size. |
boolean |
match(MailMessage message)
Matches the given size and the actual message size. |
java.lang.String |
toString()
Returns the string represenation of the key. |
Methods inherited from class SK.gnome.dwarf.mail.store.search.SearchKey |
addError, clearErrors, getErrors, getType, hasError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SMALLER
public static final int LARGER
protected long size
Constructor Detail |
public SizeKey(int type, long size)
type
- the key typesize
- the mathed sizeMethod Detail |
public long getSize()
public boolean match(MailMessage message) throws MailException
match
in class SearchKey
message
- the searched message
MailException
- if an error occurspublic java.lang.String toString()
SearchKey
toString
in class SearchKey
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |