org.codehaus.groovy.runtime
[Java] Class NumberAwareComparator
java.lang.Object
org.codehaus.groovy.runtime.NumberAwareComparator
- All Implemented Interfaces:
- Comparator
public class NumberAwareComparator
extends Object
Compares two objects using Groovy's friendly comparison algorithm, i.e.
handles nulls gracefully (nul being less than everything else) and
performs numeric type coercion if required.
compare
public int compare(Object o1, Object o2)
-
Copyright © 2003-2013 The Codehaus. All rights reserved.