Problem:
Sorts of Strings are just as likely to be done in a case insensitive manner
as in a case sensitive one, yet the String class has no case insensitive
Comparator or compareTo method.
Requestors:
Internal
Proposed API change:
Add to class String the following operation and constant to support
case-insensitive sorting with the new collections APIs:
1. public int compareToIgnoreCase(String other)
This addition fills out existing comparison and sorting methods:
OP: equality sorting
MODE -------- -------
exact| equals compareTo
C.I. | equalsIgnoreCase compareToIgnoreCase[NEW]
2. public static final Comparator CASE_INSENSITIVE_ORDER
Comparator which calls compareToIgnoreCase, for use with Arrays.sort, etc.
Notes:
- These respect the current locale setting.
- They may be defined in terms of toLowerCase and compareTo.