public final class FlagTerm extends SearchTerm
| Modifier and Type | Field and Description |
|---|---|
protected Flags |
flags
The flags to test.
|
protected boolean |
set
Indicates whether to test for the presence or absence of the specified
flag.
|
| Constructor and Description |
|---|
FlagTerm(Flags flags,
boolean set)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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.
|
protected boolean set
protected Flags flags
public FlagTerm(Flags flags, boolean set)
flags - the flags to testset - whether to test for presence or absence of the specified
flagspublic Flags getFlags()
public boolean getTestSet()
public boolean match(Message msg)
match in class SearchTermpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object© Copyright 2003, 2004 The Free Software Foundation, All rights reserved