Package javax.mail.search
Class StringTerm
- java.lang.Object
-
- javax.mail.search.SearchTerm
-
- javax.mail.search.StringTerm
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AddressStringTerm,BodyTerm,HeaderTerm,MessageIDTerm,SubjectTerm
public abstract class StringTerm extends SearchTerm
A comparison of string values.- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanignoreCaseWhether to ignore case during comparison.protected java.lang.StringpatternThe pattern to match.
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringTerm(java.lang.String pattern)protectedStringTerm(java.lang.String pattern, boolean ignoreCase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)booleangetIgnoreCase()Indicates whether to ignore case during comparison.java.lang.StringgetPattern()Returns the pattern to match.inthashCode()protected booleanmatch(java.lang.String s)Returns true if the specified pattern is a substring of the given string.-
Methods inherited from class javax.mail.search.SearchTerm
match
-
-
-
-
Method Detail
-
getPattern
public java.lang.String getPattern()
Returns the pattern to match.
-
getIgnoreCase
public boolean getIgnoreCase()
Indicates whether to ignore case during comparison.
-
match
protected boolean match(java.lang.String s)
Returns true if the specified pattern is a substring of the given string.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-