|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Sortable
Delegate object to hand to sort for call back compare.
| Method Summary | |
|---|---|
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare object a to object b. |
java.lang.Object |
get(int index)
Get the value at position index. |
int |
getSize()
The size of the list. |
void |
set(int index,
java.lang.Object o)
Set the object at index. |
| Method Detail |
|---|
int compare(java.lang.Object a,
java.lang.Object b)
e.g. +1 (or any positive integer) if a > b
0 if a == b
-1 (or any negative integer) if a < b
a - the first object to compareb - the second object to compare
java.lang.Object get(int index)
index - the index
void set(int index,
java.lang.Object o)
index - the indexo - Object to addint getSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||