java.io.Serializable
public final class FlagTerm extends SearchTerm
Modifier and Type | Field | 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 | Description |
---|---|
FlagTerm(Flags flags,
boolean set) |
Constructor.
|
Modifier and Type | Method | 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 SearchTerm
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved