FileDocCategorySizeDatePackage
StringIgnoreCaseComparator.javaAPI DocExample391Tue Feb 27 15:56:56 GMT 2001None

StringIgnoreCaseComparator

public class StringIgnoreCaseComparator extends Object implements Comparator
Simple Comparator for the common case of sortings Strings in a case-insensitive way. NOT NEEDED IN JAVA2; use String.CASE_INSENSITIVE_ORDER.

Fields Summary
Constructors Summary
Methods Summary
public intcompare(java.lang.Object o1, java.lang.Object o2)

		String s1 = o1.toString().toLowerCase();
		String s2 = o2.toString().toLowerCase();
		return s1.compareTo(s2);