public abstract class

StringTerm

extends SearchTerm
java.lang.Object
   ↳ com.google.code.javax.mail.search.SearchTerm
     ↳ com.google.code.javax.mail.search.StringTerm
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

This class implements the match method for Strings. The current implementation provides only for substring matching. We could add comparisons (like strcmp ...).

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.search.SearchTerm
Fields
protected boolean ignoreCase Ignore case when comparing?
protected String pattern The pattern.
Protected Constructors
StringTerm(String pattern)
StringTerm(String pattern, boolean ignoreCase)
Public Methods
boolean equals(Object obj)
Equality comparison.
boolean getIgnoreCase()
Return true if we should ignore case when matching.
String getPattern()
Return the string to match with.
int hashCode()
Compute a hashCode for this object.
Protected Methods
boolean match(String s)
[Expand]
Inherited Methods
From class com.google.code.javax.mail.search.SearchTerm
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 1274042129007696269 (0x11ae4e90f062d98d)

Fields

protected boolean ignoreCase

Ignore case when comparing?

protected String pattern

The pattern.

Protected Constructors

protected StringTerm (String pattern)

Parameters
pattern

protected StringTerm (String pattern, boolean ignoreCase)

Parameters
pattern
ignoreCase

Public Methods

public boolean equals (Object obj)

Equality comparison.

Parameters
obj

public boolean getIgnoreCase ()

Return true if we should ignore case when matching.

public String getPattern ()

Return the string to match with.

public int hashCode ()

Compute a hashCode for this object.

Protected Methods

protected boolean match (String s)

Parameters
s