Note that this class differs from the FromTerm
class
in that this class does comparisons on address strings rather than Address
objects. The string comparisons are case-insensitive.
Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(Object
the reference object with which to compare. obj)Overrides jakarta. |
public boolean | Returns: true if the match succeeds, otherwise false.The comparison is applied to this Message's From
address. msg)Implements abstract jakarta. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides jakarta. |
FromStringTerm | back to summary |
---|---|
public FromStringTerm(String pattern) Constructor.
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides jakarta. Equality comparison.
|
match | back to summary |
---|---|
public boolean match(Message msg) Implements abstract jakarta. Check whether the address string specified in the constructor is a substring of the From address of this Message. |