Package javax.mail.search
Class StringTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AddressStringTerm,BodyTerm,HeaderTerm,MessageIDTerm,SubjectTerm
This class implements the match method for Strings. The current
implementation provides only for substring matching. We
could add comparisons (like strcmp ...).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality comparison.booleanReturn true if we should ignore case when matching.Return the string to match with.inthashCode()Compute a hashCode for this object.Methods inherited from class javax.mail.search.SearchTerm
match
-
Method Details
-
getPattern
Return the string to match with.- Returns:
- the string to match
-
getIgnoreCase
public boolean getIgnoreCase()Return true if we should ignore case when matching.- Returns:
- true if we should ignore case
-
equals
Equality comparison. -
hashCode
public int hashCode()Compute a hashCode for this object.
-