public final class BodyTerm extends StringTerm
text
OR
text
.
ignoreCase, pattern
Constructor and Description |
---|
BodyTerm(java.lang.String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
boolean |
match(Message msg)
Returns true only if the search text was found in the message body.
|
getIgnoreCase, getPattern, hashCode, match
public BodyTerm(java.lang.String pattern)
pattern
- the text to search forpublic boolean match(Message msg)
match
in class SearchTerm
public boolean equals(java.lang.Object other)
equals
in class StringTerm