public static < C extends Comparable > Ordering < Range < C > > orderingByLowerEndpoint ( ) { return new Ordering < Range < C > > ( ) { @ Override public int compare ( final Range < C > left , final Range < C > right ) { return ComparisonChain . start ( ) . compare ( left . hasLowerBound ( ) , right . hasLowerBound ( ) ) . compare ( left . lowerEndpoint ( ) , right . lowerEndpoint ( ) ) . result ( ) ; } } ; }
Return an ordering by lower endpoint over ranges .