keith-turner opened a new issue #1044: TableRange.compareTo method could be 
improved with Java 8
URL: https://github.com/apache/fluo/issues/1044
 
 
   Java a added a lot of nice methods for building comparators.  These could be 
used to make 
[TableRange.compareTo()](https://github.com/apache/fluo/blob/91884df193b9819830bf21444ba1f42c09ba9c68/modules/core/src/main/java/org/apache/fluo/core/worker/finder/hash/TableRange.java#L108)
 much more readable.   Specifically the Java 8 methods `Comparator.nullsLast()` 
and `Comparator.comparing()` could be used to create a private static final 
Comparator that `TableRange.compareTo()` calls.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to