javax.mail.search
Class FlagTerm
- Serializable
public final class FlagTerm
A comparison of message flags.
protected Flags | flags - The flags to test.
|
protected boolean | set - Indicates whether to test for the presence or absence of the specified
flag.
|
boolean | equals(Object other)
|
Flags | getFlags() - Returns the flags to test.
|
boolean | getTestSet() - Indicates whether to test for the presence or the absence of the
specified flags.
|
int | hashCode()
|
boolean | match(Message msg) - Returns true if the flags in the specified message match this term.
|
flags
protected Flags flags
The flags to test.
set
protected boolean set
Indicates whether to test for the presence or absence of the specified
flag. If true, test whether all the specified flags are present,
otherwise test whether all the specified flags are absent.
FlagTerm
public FlagTerm(Flags flags,
boolean set)
Constructor.
flags
- the flags to testset
- whether to test for presence or absence of the specified
flags
equals
public boolean equals(Object other)
getFlags
public Flags getFlags()
Returns the flags to test.
getTestSet
public boolean getTestSet()
Indicates whether to test for the presence or the absence of the
specified flags.
hashCode
public int hashCode()
match
public boolean match(Message msg)
Returns true if the flags in the specified message match this term.
- match in interface SearchTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved