IT. Expert System.

Java Enterprise Edition (EE)

StringTerm


javax.mail.search
Class StringTerm

java.lang.Object
  javax.mail.search.SearchTerm
      javax.mail.search.StringTerm
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddressStringTerm, BodyTerm, HeaderTerm, MessageIDTerm, SubjectTerm
public abstract class StringTerm
extends SearchTerm

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

Author:
Bill Shannon, John Mani
See Also:
Serialized Form

Field Summary
protected  boolean ignoreCase
          Ignore case when comparing?
protected  java.lang.String pattern
          The 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

pattern

protected java.lang.String pattern
The pattern.

ignoreCase

protected boolean ignoreCase
Ignore case when comparing?

Constructor Detail

StringTerm

protected StringTerm(java.lang.String pattern)

StringTerm

protected StringTerm(java.lang.String pattern,
                     boolean ignoreCase)
Method Detail

getPattern

public java.lang.String getPattern()
Return the string to match with.

getIgnoreCase

public boolean getIgnoreCase()
Return true if we should ignore case when matching.

match

protected boolean match(java.lang.String s)

equals

public boolean equals(java.lang.Object obj)
Equality comparison.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Compute a hashCode for this object.

Overrides:
hashCode in class java.lang.Object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1749 / 248362365. Delta: 0.00666 с