public static int numberAwareCompareTo ( Comparable self , Comparable other ) { NumberAwareComparator < Comparable > numberAwareComparator = new NumberAwareComparator < Comparable > ( ) ; return numberAwareComparator . compare ( self , other ) ; }
Provides a method that compares two comparables using Groovy s default number aware comparator .