public final class FromStringTerm extends AddressStringTerm
ignoreCase, pattern
Constructor and Description |
---|
FromStringTerm(java.lang.String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
boolean |
match(Message msg)
Indicates whether the address pattern specified in the constructor is a
substring of the string representation of the From address in the given
message.
|
match
getIgnoreCase, getPattern, hashCode, match
public FromStringTerm(java.lang.String pattern)
address
- the address pattern for comparisonpublic boolean match(Message msg)
match
in class SearchTerm
msg
- the messagepublic boolean equals(java.lang.Object other)
equals
in class AddressStringTerm