public final class

MessageIDTerm

extends StringTerm
java.lang.Object
   ↳ com.google.code.javax.mail.search.SearchTerm
     ↳ com.google.code.javax.mail.search.StringTerm
       ↳ com.google.code.javax.mail.search.MessageIDTerm

Class Overview

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.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.search.StringTerm
From class com.google.code.javax.mail.search.SearchTerm
[Expand]
Inherited Fields
From class com.google.code.javax.mail.search.StringTerm
Public Constructors
MessageIDTerm(String msgid)
Constructor.
Public Methods
boolean equals(Object obj)
Equality comparison.
boolean match(Message msg)
The match method.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.search.StringTerm
From class com.google.code.javax.mail.search.SearchTerm
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: -2121096296454691963 (0xe2905a280b6be385)

Public Constructors

public MessageIDTerm (String msgid)

Constructor.

Parameters
msgid The msgid to search for

Public Methods

public boolean equals (Object obj)

Equality comparison.

Parameters
obj

public boolean match (Message msg)

The match method.

Parameters
msg The match is applied to this Message's Message-ID header
Returns
  • true if the match succeeds, otherwise false