| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.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 | ignoreCaseIgnore case when comparing? | 
| protected  java.lang.String | patternThe pattern. | 
| Constructor Summary | |
|---|---|
| protected  | StringTerm(java.lang.String pattern) | 
| protected  | StringTerm(java.lang.String pattern,
           boolean ignoreCase) | 
| Method Summary | |
|---|---|
|  boolean | equals(java.lang.Object obj)Equality comparison. | 
|  boolean | getIgnoreCase()Return true if we should ignore case when matching. | 
|  java.lang.String | getPattern()Return the string to match with. | 
|  int | hashCode()Compute a hashCode for this object. | 
| protected  boolean | match(java.lang.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 java.lang.String pattern
protected boolean ignoreCase
| Constructor Detail | 
|---|
protected StringTerm(java.lang.String pattern)
protected StringTerm(java.lang.String pattern,
                     boolean ignoreCase)
| Method Detail | 
|---|
public java.lang.String getPattern()
public boolean getIgnoreCase()
protected boolean match(java.lang.String s)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41