drasys.or
Interface CompareI
- All Known Implementing Classes:
- CompareNumber, CompareNumberReverse, CompareStringReverse, CompareString, CompareReverse
- public interface CompareI
An interface to compare two objects.
Field Summary |
static int |
EQUAL
Return value that indicates 'a' is equal to 'b'. |
static int |
GREATER
The return value which indicates 'a' is greater than 'b'. |
static int |
LESS
Return value that indicates 'a' is less than 'b'. |
Method Summary |
int |
compare(java.lang.Object a,
java.lang.Object b)
|
LESS
public static final int LESS
- Return value that indicates 'a' is less than 'b'.
EQUAL
public static final int EQUAL
- Return value that indicates 'a' is equal to 'b'.
GREATER
public static final int GREATER
- The return value which indicates 'a' is greater than 'b'.
compare
public int compare(java.lang.Object a,
java.lang.Object b)
- Returns:
- LESS, EQUAL or GREATER
Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com