Name
StringTerm
Synopsis
This is the base class for a string comparison. Classes that descend from
StringTerm
will return true
if the search
pattern specified in the constructor is a substring of the data that the
term is comparing against.
public abstract class StringTerm extends SearchTerm { // Protected Constructors protected StringTerm( String pattern); protected StringTerm( String pattern, boolean ignoreCase); // Public Instance Methods public boolean getIgnoreCase(); public String getPattern(); // Public Methods Overriding Object public boolean equals( Object obj); // 1.2 public int hashCode(); // 1.2 // Protected Instance Methods protected boolean match( String s); // Protected Instance Fields protected boolean ignoreCase; protected String pattern; }
Subclasses
AddressStringTerm
, BodyTerm
, HeaderTerm
, MessageIDTerm
, SubjectTerm
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.