ariba.util.core
Class StringCompare

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

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

An implementation of Compare for Strings


Field Summary
static Compare caseInsensitive
          Performs case-insensitive string comparison
static Compare self
          Performs case-sensitive string comparison
 
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
Performs case-sensitive string comparison


caseInsensitive

public static final Compare caseInsensitive
Performs case-insensitive string comparison

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.