public class DefaultComparisonOperator extends Object implements EngineComparatorExtension, StringCoercionExtension
ComparisonOperator. If no other EngineComparatorExtension have been configured to handle
a type, the DefaultComparisonOperator will be used. At the moment the DefaultComparisonOperator is also the default
StringCoercionExtension for coercing types.| Constructor and Description |
|---|
DefaultComparisonOperator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCoerce(String type,
String value) |
boolean |
canCompare(Object lhs,
Object rhs) |
Object |
coerce(String type,
String value) |
int |
compare(Object lhs,
Object rhs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic DefaultComparisonOperator()
public int compare(Object lhs, Object rhs)
compare in interface Comparatorcompare in interface EngineComparatorExtensionpublic boolean canCompare(Object lhs, Object rhs)
canCompare in interface EngineComparatorExtensionpublic Object coerce(String type, String value)
coerce in interface StringCoercionExtensionpublic boolean canCoerce(String type, String value)
canCoerce in interface StringCoercionExtensionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.