pnuts.lang
Class BooleanOperator

java.lang.Object
  extended by pnuts.lang.BooleanOperator
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BooleanOperator.EQ, BooleanOperator.GE, BooleanOperator.GT, BooleanOperator.LE, BooleanOperator.LT

public abstract class BooleanOperator
extends java.lang.Object
implements java.io.Serializable

Abstract base class of boolean operations

See Also:
BinaryOperator, Serialized Form

Nested Class Summary
static class BooleanOperator.EQ
          The default implementation of == operator
static class BooleanOperator.GE
          The default implementation of >= operator
static class BooleanOperator.GT
          The default implementation of > operator
static class BooleanOperator.LE
          The default implementation of <= operator
static class BooleanOperator.LT
          The default implementation of < operator
 
Constructor Summary
BooleanOperator()
           
 
Method Summary
protected  boolean op_bdec(java.math.BigDecimal d1, java.math.BigDecimal d2)
           
protected  boolean op_bint(java.math.BigInteger b1, java.math.BigInteger b2)
           
protected  boolean op_boolean(boolean b1, boolean b2)
           
protected  boolean op_double(double d1, double d2)
           
protected  boolean op_float(float f1, float f2)
           
protected  boolean op_int(int i1, int i2)
           
protected  boolean op_long(long l1, long l2)
           
protected  boolean op_numeric(Numeric n1, java.lang.Object n2)
           
protected  boolean op_numeric(java.lang.Object n1, Numeric n2)
           
protected  boolean op_object(java.lang.Object o1, java.lang.Object o2)
           
protected  boolean op_string(java.lang.Object o1, java.lang.String o2)
           
protected  boolean op_string(java.lang.String o1, java.lang.Object o2)
           
 boolean operateOn(java.lang.Object n1, java.lang.Object n2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanOperator

public BooleanOperator()
Method Detail

op_boolean

protected boolean op_boolean(boolean b1,
                             boolean b2)

op_int

protected boolean op_int(int i1,
                         int i2)

op_long

protected boolean op_long(long l1,
                          long l2)

op_float

protected boolean op_float(float f1,
                           float f2)

op_double

protected boolean op_double(double d1,
                            double d2)

op_bdec

protected boolean op_bdec(java.math.BigDecimal d1,
                          java.math.BigDecimal d2)

op_bint

protected boolean op_bint(java.math.BigInteger b1,
                          java.math.BigInteger b2)

op_numeric

protected boolean op_numeric(Numeric n1,
                             java.lang.Object n2)

op_numeric

protected boolean op_numeric(java.lang.Object n1,
                             Numeric n2)

op_object

protected boolean op_object(java.lang.Object o1,
                            java.lang.Object o2)

op_string

protected boolean op_string(java.lang.String o1,
                            java.lang.Object o2)

op_string

protected boolean op_string(java.lang.Object o1,
                            java.lang.String o2)

operateOn

public boolean operateOn(java.lang.Object n1,
                         java.lang.Object n2)