[Not really on topic] arithmetic/comparative operators

Brian Goetz brian.goetz at oracle.com
Mon Jun 4 08:26:17 PDT 2012


Good suggestion.  We'll take a look.  

> There is something we can do right now: adding default methods
> isGreaterThan, isLessOrEqualThan to Comparable will allow us
> to write
> if(a.isGreaterThan(b)){
> ....
> }
> which is  way better than
> if(a.compareTo(b) > 0){
> ....
> }
> 
> is something like that planned?



More information about the lambda-dev mailing list