|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.search.SearchTerm javax.mail.search.StringTerm
public abstract class StringTerm
This class implements the match method for Strings. The current implementation provides only for substring matching. We could add comparisons (like strcmp ...).
Field Summary | |
---|---|
protected boolean |
ignoreCase
Ignore case when comparing? |
protected String |
pattern
The pattern. |
Constructor Summary | |
---|---|
protected |
StringTerm(String pattern)
|
protected |
StringTerm(String pattern,
boolean ignoreCase)
|
Method Summary | |
---|---|
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 boolean |
match(String s)
|
Methods inherited from class javax.mail.search.SearchTerm |
---|
match |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String pattern
protected boolean ignoreCase
Constructor Detail |
---|
protected StringTerm(String pattern)
protected StringTerm(String pattern, boolean ignoreCase)
Method Detail |
---|
public String getPattern()
public boolean getIgnoreCase()
protected boolean match(String s)
public boolean equals(Object obj)
public int hashCode()
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.