|
Groovy 1.7.8 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.NumberAwareComparator
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.
Method Summary | |
---|---|
int
|
compare(T o1, T o2)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public int compare(T o1, T o2)
Copyright © 2003-2010 The Codehaus. All rights reserved.