当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Class MessageNumberTerm - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.mail.search
Class MessageNumberTerm
java.lang.Object
|
+--javax.mail.search.SearchTerm
|
+--javax.mail.search.ComparisonTerm
|
+--javax.mail.search.IntegerComparisonTerm
|
+--javax.mail.search.MessageNumberTerm
- public final class MessageNumberTerm
- extends IntegerComparisonTerm
This class implements comparisons for Message numbers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageNumberTerm
public MessageNumberTerm(int number)
- Constructor.
- Parameters:
number
- the Message number
match
public boolean match(Message msg)
- The match method.
- Overrides:
match
in class SearchTerm
- Parameters:
msg
- the Message number is matched with this Message- Returns:
- true if the match succeeds, otherwise false