public final class FlagTerm extends SearchTerm
Modifier and Type | Field and Description |
---|---|
private Flags |
flags
Flags object containing the flags to test.
|
private static long |
serialVersionUID |
private 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 obj)
Equality comparison.
|
Flags |
getFlags()
Return the Flags to test.
|
boolean |
getTestSet()
Return true if testing whether the flags are set.
|
int |
hashCode()
Compute a hashCode for this object.
|
boolean |
match(Message msg)
The comparison method.
|
private boolean set
true
,
then test whether all the specified flags are present, else
test whether all the specified flags are absent.private Flags flags
private static final long serialVersionUID
public FlagTerm(Flags flags, boolean set)
flags
- Flags object containing the flags to check forset
- the flag setting to check forpublic Flags getFlags()
public boolean getTestSet()
public boolean match(Message msg)
match
in class SearchTerm
msg
- The flag comparison is applied to this Messagepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object