Home » openjdk-7 » sun » misc » [javadoc | source]
public class: ASCIICaseInsensitiveComparator [javadoc | source]

All Implemented Interfaces:

Implements a locale and case insensitive comparator suitable for strings that are known to only contain ASCII characters. Some tables internal to the JDK contain only ASCII data and are using the "generalized" java.lang.String case-insensitive comparator which converts each character to both upper and lower case.
Field Summary
public static final  Comparator<String> CASE_INSENSITIVE_ORDER     
Method from sun.misc.ASCIICaseInsensitiveComparator Summary:
compare,   isLower,   isUpper,   lowerCaseHashCode,   toLower,   toUpper
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.misc.ASCIICaseInsensitiveComparator Detail:
 public int compare(String s1,
    String s2) 
 static boolean isLower(int ch) 
 static boolean isUpper(int ch) 
 public static int lowerCaseHashCode(String s) 
    A case insensitive hash code method to go with the case insensitive compare() method. Returns a hash code for this ASCII string as if it were lower case. returns same answer as:


    but does not allocate memory (it does NOT have the special case Turkish rules).

 static int toLower(int ch) 
 static int toUpper(int ch)