org.shapelogic.predicate
Class BinaryEqualPredicate

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

public class BinaryEqualPredicate
extends java.lang.Object
implements BinaryPredicate

Standard binary equal predicate.

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

Author:
Sami Badawi

Field Summary
static java.lang.String EQUALS
           
 
Constructor Summary
BinaryEqualPredicate()
           
 
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

EQUALS

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

BinaryEqualPredicate

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