|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
static final int LessThan
static final int EqualTo
static final int GreaterThan
Method Detail |
---|
int compare(java.lang.Object o1, java.lang.Object o2)
o1
- the first object to compareo2
- the second object to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |