javax.mail.search
Class FlagTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.FlagTerm
- All Implemented Interfaces:
- java.io.Serializable
- public final class FlagTerm
- extends SearchTerm
Term for matching message Flags
.
- Version:
- $Rev: 126550 $ $Date: 2005-01-26 15:27:45 -0700 (Wed, 26 Jan 2005) $
- See Also:
- Serialized Form
Field Summary |
protected Flags |
flags
The flags to test. |
protected boolean |
set
If true, test that all flags are set; if false, test that all flags are clear. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
set
protected boolean set
- If true, test that all flags are set; if false, test that all flags are clear.
flags
protected Flags flags
- The flags to test.
FlagTerm
public FlagTerm(Flags flags,
boolean set)
- Parameters:
flags
- the flags to testset
- test for set or clear; set
getFlags
public Flags getFlags()
getTestSet
public boolean getTestSet()
match
public boolean match(Message message)
- Description copied from class:
SearchTerm
- Checks a matching criteria defined by the concrete subclass of this Term.
- Specified by:
match
in class SearchTerm
- Parameters:
message
- the message to apply the matching criteria to
- Returns:
- true if the matching criteria is met
equals
public boolean equals(java.lang.Object other)
hashCode
public int hashCode()