org.shapelogic.predicate
Class BinaryGreaterPredicate

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

public class BinaryGreaterPredicate
extends java.lang.Object
implements BinaryPredicate

Standard binary greater 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 GREATER
           
 
Constructor Summary
BinaryGreaterPredicate()
           
 
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

GREATER

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

BinaryGreaterPredicate

public BinaryGreaterPredicate()
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.