javax.mail.search

Class FlagTerm

public final class FlagTerm extends SearchTerm

Term for matching message Flags.
Field Summary
protected Flagsflags
The flags to test.
protected booleanset
If true, test that all flags are set; if false, test that all flags are clear.
Constructor Summary
FlagTerm(Flags flags, boolean set)
Method Summary
booleanequals(Object other)
FlagsgetFlags()
booleangetTestSet()
inthashCode()
booleanmatch(Message message)

Field Detail

flags

protected Flags flags
The flags to test.

set

protected boolean set
If true, test that all flags are set; if false, test that all flags are clear.

Constructor Detail

FlagTerm

public FlagTerm(Flags flags, boolean set)

Parameters: flags the flags to test set test for set or clear; set

Method Detail

equals

public boolean equals(Object other)

getFlags

public Flags getFlags()

getTestSet

public boolean getTestSet()

hashCode

public int hashCode()

match

public boolean match(Message message)