ariba.util.core
Class StringCompareIgnoreCase

java.lang.Object
  extended by ariba.util.core.StringCompareIgnoreCase
All Implemented Interfaces:
Compare

public final class StringCompareIgnoreCase
extends java.lang.Object
implements Compare

An case insensitve implementation of Compare for Strings


Field Summary
static Compare self
          The only instance you'll ever need
 
Fields inherited from interface ariba.util.core.Compare
EqualTo, GreaterThan, LessThan
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares objects o1 and o2, returning a value less than, equal to, or greater than zero depending on whether o1 is less than, equal to, or greater than o2.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

self

public static final Compare self
The only instance you'll ever need

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares objects o1 and o2, returning a value less than, equal to, or greater than zero depending on whether o1 is less than, equal to, or greater than o2.

Specified by:
compare in interface Compare
Parameters:
o1 - the first object to compare
o2 - the second object to compare
Returns:
a value less than, equal to, or greater than zero depending on whether o1 is less than, equal to, or greater than o2


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.