|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Swapper
A swapper function. Swappers can be passed to a sort method (such as misc.Utils.sort) to allow precise control over the swap of elements.
Method Summary | |
---|---|
void |
swap(int a,
int b)
Swaps two elements |
Method Detail |
---|
void swap(int a, int b)
a
- the index of first element to be swapped.b
- the index of second element to be swapped.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |