DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Why is Ordering.reverse() not static? #1561

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ordering.natural() is static, this way I am forced to use 
Collections.reverseOrder(Ordering.natural()) if I want to use it as an argument 
of a static method.

If there is no particular design issue, probably somebody just overlooked it in 
the 14.0.1.

Original issue reported on code.google.com by cataldom...@gmail.com on 24 Oct 2013 at 12:09

GoogleCodeExporter commented 9 years ago
Ok, I can do Ordering.natural().reverse(), I thought one can use 
Ordering.reverse() and get the Comparator.

Original comment by cataldom...@gmail.com on 24 Oct 2013 at 12:12

GoogleCodeExporter commented 9 years ago

Original comment by cpov...@google.com on 24 Oct 2013 at 1:47

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08