Main Page | Class Hierarchy | Class List | Directories | Class Members | Related Pages

java.lang.String.CaseInsensitiveComparator Class Reference

List of all members.

Detailed Description

CaseInsensitiveComparator compares Strings ignoring the case of the characters.


Public Member Functions

int compare (Object o1, Object o2)
 Compare the two objects to determine the relative ordering.

Static Package Attributes

static final long serialVersionUID = 8575799808933029326L


Member Function Documentation

int java.lang.String.CaseInsensitiveComparator.compare Object  o1,
Object  o2
 

Compare the two objects to determine the relative ordering.

Parameters:
o1 an Object to compare
o2 an Object to compare
Returns:
an int < 0 if object1 is less than object2, 0 if they are equal, and > 0 if object1 is greater
Exceptions:
ClassCastException when objects are not the correct type


The documentation for this class was generated from the following file:
(c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable.