final class ComparatorHelper extends Object
CompareOperator.eval(Object, Object) for Comparable
 arguments. This allows the implementation to be replaced with a GWT compatible one.| Modifier | Constructor and Description | 
|---|---|
| private  | ComparatorHelper()Construction prohibited. | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) static Object | convert(Object object,
       Class<?> otherType)This method converts the given value to a more common type. | 
| (package private) static boolean | evalComparable(CompareOperator comparator,
              Comparable arg1,
              Comparable arg2)Logic for  CompareOperator.eval(Object, Object)withComparablearguments. | 
static Object convert(Object object, Class<?> otherType)
Calendar or
 XMLGregorianCalendar will be converted to Date.object - is the value to convert.otherType - the type of the value to compare that differs from the typevalue or the same value if on simpler type is known.static boolean evalComparable(CompareOperator comparator, Comparable arg1, Comparable arg2)
CompareOperator.eval(Object, Object) with Comparable arguments.comparator - is the CompareOperator.arg1 - is the first argument.arg2 - is the second argument.CompareOperator applied to the given arguments.Copyright © 2001–2016 mmm-Team. All rights reserved.