compare two atomicvalue objects according to the rules for their data type . untypedatomic values are compared as if they were strings ; if different semantics are wanted , the conversion must be done by the caller . concode_field_sep Comparator collator concode_elem_sep boolean canReturnCollationKeys concode_elem_sep Platform platform concode_field_sep ComparisonKey getComparisonKey concode_elem_sep boolean comparesEqual
int function ( Object arg0 , Object arg1 ) { if ( arg0 == null ) { if ( arg1 == null ) { return 0 ; } else { return - 1 ; } } else if ( arg1 == null ) { return + 1 ; } return collator . compare ( ( ( AtomicValue ) arg0 ) . getStringValue ( ) , ( ( AtomicValue ) arg1 ) . getStringValue ( ) ) ; }