javax.mail.search
类 MessageIDTerm

java.lang.Object
  继承者 javax.mail.search.SearchTerm
      继承者 javax.mail.search.StringTerm
          继承者 javax.mail.search.MessageIDTerm
所有已实现的接口:
Serializable

public final class MessageIDTerm
extends StringTerm

This term models the RFC822 "MessageId" - a message-id for Internet messages that is supposed to be unique per message. Clients can use this term to search a folder for a message given its MessageId.

The MessageId is represented as a String.

作者:
Bill Shannon, John Mani
另请参见:
序列化表格

字段摘要
 
从类 javax.mail.search.StringTerm 继承的字段
ignoreCase, pattern
 
构造方法摘要
MessageIDTerm(String msgid)
          Constructor.
 
方法摘要
 boolean equals(Object obj)
          Equality comparison.
 boolean match(Message msg)
          The match method.
 
从类 javax.mail.search.StringTerm 继承的方法
getIgnoreCase, getPattern, hashCode, match
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MessageIDTerm

public MessageIDTerm(String msgid)
Constructor.

参数:
msgid - the msgid to search for
方法详细信息

match

public boolean match(Message msg)
The match method.

指定者:
SearchTerm 中的 match
参数:
msg - the match is applied to this Message's Message-ID header
返回:
true if the match succeeds, otherwise false

equals

public boolean equals(Object obj)
Equality comparison.

覆盖:
StringTerm 中的 equals


Copyright © 2013. All Rights Reserved.