Build 1.0_r1(from source)

java.nio.charset
Class Charset.IgnoreCaseComparator

java.lang.Object
  extended by java.nio.charset.Charset.IgnoreCaseComparator
All Implemented Interfaces:
Comparator<String>
Enclosing class:
Charset

static class Charset.IgnoreCaseComparator
extends Object
implements Comparator<String>

A comparator that ignores case.


Method Summary
 int compare(String s1, String s2)
          Compare the two objects to determine the relative ordering.
static Comparator<String> getInstance()
           
 
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
 

Method Detail

getInstance

public static Comparator<String> getInstance()

compare

public int compare(String s1,
                   String s2)
Description copied from interface: Comparator
Compare the two objects to determine the relative ordering.

Specified by:
compare in interface Comparator<String>
Parameters:
s1 - an Object to compare
s2 - 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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature