|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface Sortable
Sortable defines an interface for collections or other objects which may be sorted based on some comparison. The comparison is defined by an external object which implements the com.sas.util.Comparator interface for comparing two objects from the collection.
This interface only applies to objects which have integer-indexed values.
StringComparator,
Comparator,
Sort| Method Summary | |
|---|---|
abstract void |
sort(com.sas.util.Comparator comparator)
Sorts the items from the current collection using the provided comparison function. |
abstract void |
sort(com.sas.util.Comparator comparator,
int start,
int end)
Sorts a range of items from the current collection using the provided comparison function. |
| Method Detail |
|---|
void sort(com.sas.util.Comparator comparator,
int start,
int end)
comparator - an object which compares two items from the Sortable collection.start - The index of the first item in the range to sortend - sort the items between start and (end-1)void sort(com.sas.util.Comparator comparator)
comparator - an object which compares two items from the Sortable collection.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||