javax.mail.search

Class StringTerm

public abstract class StringTerm extends SearchTerm

A comparison of string values.

Version: 1.4

Author: Chris Burdess

Field Summary
protected booleanignoreCase
Whether to ignore case during comparison.
protected Stringpattern
The pattern to match.
Constructor Summary
protected StringTerm(String pattern)
protected StringTerm(String pattern, boolean ignoreCase)
Method Summary
booleanequals(Object other)
booleangetIgnoreCase()
Indicates whether to ignore case during comparison.
StringgetPattern()
Returns the pattern to match.
inthashCode()
protected booleanmatch(String s)
Returns true if the specified pattern is a substring of the given string.

Field Detail

ignoreCase

protected boolean ignoreCase
Whether to ignore case during comparison.

pattern

protected String pattern
The pattern to match.

Constructor Detail

StringTerm

protected StringTerm(String pattern)

StringTerm

protected StringTerm(String pattern, boolean ignoreCase)

Method Detail

equals

public boolean equals(Object other)

getIgnoreCase

public boolean getIgnoreCase()
Indicates whether to ignore case during comparison.

getPattern

public String getPattern()
Returns the pattern to match.

hashCode

public int hashCode()

match

protected boolean match(String s)
Returns true if the specified pattern is a substring of the given string.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved