javax.mail.search

Class MessageIDTerm

Implemented Interfaces:
Serializable

public final class MessageIDTerm
extends StringTerm

A comparison for the RFC822 "Message-Id", a string message identifier for Internet messages that is supposed to be unique per message.
Version:
1.4
Author:
Chris Burdess

Field Summary

Fields inherited from class javax.mail.search.StringTerm

ignoreCase, pattern

Constructor Summary

MessageIDTerm(String msgid)
Constructor.

Method Summary

boolean
equals(Object other)
boolean
match(Message msg)
Returns true if the given message's Message-Id matches the Message-Id specified in this term.

Methods inherited from class javax.mail.search.StringTerm

equals, getIgnoreCase, getPattern, hashCode, match

Methods inherited from class javax.mail.search.SearchTerm

match

Constructor Details

MessageIDTerm

public MessageIDTerm(String msgid)
Constructor.
Parameters:
msgid - the Message-Id to search for

Method Details

equals

public boolean equals(Object other)
Overrides:
equals in interface StringTerm

match

public boolean match(Message msg)
Returns true if the given message's Message-Id matches the Message-Id specified in this term.
Overrides:
match in interface SearchTerm

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved