ariba.util.core
Interface Compare

All Known Implementing Classes:
AWMutableRefCount, AWVFormatterFactory.NonBlankString, BigDecimalFormatter, BigDecimalMoneyFormatter, BooleanFormatter, DateFormatter, DecimalFormatterCommon, DoubleFormatter, FileCompare, Formatter, GenericChooser.FieldPathFormatter, GenericMoneyFormatter, IntegerArrayFormatter, IntegerCompare, IntegerFormatter, ListFormatter, LongFormatter, LowerCaseStringFormatter, PipedFormatter, SecureStringFormatter, StringCompare, StringCompareIgnoreCase, StringFormatter, SystemBooleanFormatter, UserDateFormatter

public interface Compare

Compare is an interface that provides an object comparison function for use by the static sorting methods in Sort.


Field Summary
static int EqualTo
          The caller is not required to return EqualTo, a hardcoded return of 0 will be supported.
static int GreaterThan
          The caller is not required to return GreaterThan, any number greater than 0 will do.
static int LessThan
          The caller is not required to return LessThan, any number less than 0 will do.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares objects two objects for sort order.
 

Field Detail

LessThan

static final int LessThan
The caller is not required to return LessThan, any number less than 0 will do.

See Also:
Constant Field Values

EqualTo

static final int EqualTo
The caller is not required to return EqualTo, a hardcoded return of 0 will be supported.

See Also:
Constant Field Values

GreaterThan

static final int GreaterThan
The caller is not required to return GreaterThan, any number greater than 0 will do.

See Also:
Constant Field Values
Method Detail

compare

int compare(java.lang.Object o1,
            java.lang.Object o2)
Compares objects two objects for sort order.

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.