Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.lang
Class String.CaseInsensitiveComparator  view String.CaseInsensitiveComparator download String.CaseInsensitiveComparator.java

java.lang.Object
  extended byjava.lang.String.CaseInsensitiveComparator
All Implemented Interfaces:
java.util.Comparator, java.io.Serializable
Enclosing class:
String

private static final class String.CaseInsensitiveComparator
extends Object
implements java.util.Comparator, java.io.Serializable

An implementation for String.CASE_INSENSITIVE_ORDER 55 . This must be java.io.Serializable. The class name is dictated by compatibility with Sun's JDK.


Field Summary
private static long serialVersionUID
          Compatible with JDK 1.2.
 
Constructor Summary
(package private) String.CaseInsensitiveComparator()
          The default private constructor generates unnecessary overhead.
 
Method Summary
 int compare(Object o1, Object o2)
          Compares to Strings, using String.compareToIgnoreCase(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.2.

See Also:
Constant Field Values
Constructor Detail

String.CaseInsensitiveComparator

String.CaseInsensitiveComparator()
The default private constructor generates unnecessary overhead.

Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares to Strings, using String.compareToIgnoreCase(String).

Specified by:
compare in interface java.util.Comparator