[10] RFR 8134512 : provide Alpha-Numeric (logical) Comparator

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Jul 19 08:41:46 UTC 2017


It is a proposal to provide a String comparator, which will pay 
attention to the numbers embedded into the strings (should they present).

This proposal was initially discussed back in 2014 and seemed to bring 
some interest from the community:

In the latest webrev two methods are added to the public API:
j.u.Comparator.comparingNumerically() and

The regression test is extended to exercise this new comparator.

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8134512
WEBREV: http://cr.openjdk.java.net/~igerasim/8134512/01/webrev/

Comments, suggestions are very welcome!

With kind regards,
Ivan Gerasimov

More information about the core-libs-dev mailing list