com.ibm.text
Class UnicodeFilterLogic

java.lang.Object
  |
  +--com.ibm.text.UnicodeFilterLogic

public final class UnicodeFilterLogic
extends java.lang.Object

UnicodeFilterLogic provides logical operators on UnicodeFilter objects. This class cannot be instantiated; it consists only of static methods. The static methods return filter objects that perform logical inversion (not), intersection (and), or union (or) of the given filter objects.


Constructor Summary
UnicodeFilterLogic()
           
 
Method Summary
static UnicodeFilter and(UnicodeFilter[] f)
          Returns a UnicodeFilter that implements a short circuit AND of the result of the given filters.
static UnicodeFilter and(UnicodeFilter f, UnicodeFilter g)
          Returns a UnicodeFilter that implements a short circuit AND of the result of the two given filters.
static UnicodeFilter not(UnicodeFilter f)
          Returns a UnicodeFilter that implements the inverse of the given filter.
static UnicodeFilter or(UnicodeFilter[] f)
          Returns a UnicodeFilter that implements a short circuit OR of the result of the given filters.
static UnicodeFilter or(UnicodeFilter f, UnicodeFilter g)
          Returns a UnicodeFilter that implements a short circuit OR of the result of the two given filters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeFilterLogic

public UnicodeFilterLogic()
Method Detail

not

public static UnicodeFilter not(UnicodeFilter f)
Returns a UnicodeFilter that implements the inverse of the given filter.

and

public static UnicodeFilter and(UnicodeFilter f,
                                UnicodeFilter g)
Returns a UnicodeFilter that implements a short circuit AND of the result of the two given filters. That is, if f.contains() is false, then g.contains() is not called, and contains() returns false.

Either f or g must be non-null.


and

public static UnicodeFilter and(UnicodeFilter[] f)
Returns a UnicodeFilter that implements a short circuit AND of the result of the given filters. That is, if f[i].contains() is false, then f[j].contains() is not called, where j > i, and contains() returns false.

or

public static UnicodeFilter or(UnicodeFilter f,
                               UnicodeFilter g)
Returns a UnicodeFilter that implements a short circuit OR of the result of the two given filters. That is, if f.contains() is true, then g.contains() is not called, and contains() returns true.

Either f or g must be non-null.


or

public static UnicodeFilter or(UnicodeFilter[] f)
Returns a UnicodeFilter that implements a short circuit OR of the result of the given filters. That is, if f[i].contains() is false, then f[j].contains() is not called, where j > i, and contains() returns true.


Copyright (c) 2001 IBM Corporation and others.