org.kuali.rice.krms.framework.engine.expression
Interface EngineComparatorExtension<A>

All Superinterfaces:
Comparator<A>
All Known Implementing Classes:
DefaultComparisonOperator

public interface EngineComparatorExtension<A>
extends Comparator<A>

For creating custom ComparisonOperator.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 boolean canCompare(Object lhs, Object rhs)
           
 int compare(A lhs, A rhs)
           
 
Methods inherited from interface java.util.Comparator
equals
 

Method Detail

compare

int compare(A lhs,
            A rhs)
Specified by:
compare in interface Comparator<A>
Parameters:
lhs -
rhs -
Returns:
int where 0 is equals - is less than and + is greater than

canCompare

boolean canCompare(Object lhs,
                   Object rhs)
Parameters:
lhs -
rhs -
Returns:
able to compare lhs and rhs


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.