public class NumberAwareComparator<T> extends Object implements Comparator, Serializable
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.
Constructor and description |
---|
NumberAwareComparator() |
NumberAwareComparator(boolean ignoreZeroSign)
|
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.