org.shapelogic.predicate
Class BinarySmallerPredicate

java.lang.Object
  extended by org.shapelogic.predicate.BinarySmallerPredicate
All Implemented Interfaces:
BinaryPredicate

public class BinarySmallerPredicate
extends java.lang.Object
implements BinaryPredicate

Standard binary smaller predicate.

First try see if there is a normal equals match, then try to cast to number and does comparison.

Author:
Sami Badawi

Field Summary
static java.lang.String SMALLER
           
 
Constructor Summary
BinarySmallerPredicate()
           
 
Method Summary
 boolean evaluate(java.lang.Object left, java.lang.Object right)
          Checks if a binary predicate relation holds.
 java.lang.String getName()
          Used in factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMALLER

public static final java.lang.String SMALLER
See Also:
Constant Field Values
Constructor Detail

BinarySmallerPredicate

public BinarySmallerPredicate()
Method Detail

evaluate

public boolean evaluate(java.lang.Object left,
                        java.lang.Object right)
Description copied from interface: BinaryPredicate
Checks if a binary predicate relation holds.

Specified by:
evaluate in interface BinaryPredicate

getName

public java.lang.String getName()
Description copied from interface: BinaryPredicate
Used in factory.

Specified by:
getName in interface BinaryPredicate


Copyright © 2009. All Rights Reserved.