|
Oracle Data-aware Controls Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dacf.util.AbstractSort | +--oracle.dacf.util.BiDirBubbleSort
This class implements a generic verison of a bidirectional BubbleSort. You will need to define a comparison method using the Compare interface and set the comparer before calling sort. If this is not done, then an IllegalArgumentException will be thrown. A default swapper is implemented so that it is not necessary to define an instance of the Swapper interface.
Compare
,
Swapper
,
AbstractSort
Fields inherited from class oracle.dacf.util.AbstractSort |
comparer, swapper |
Constructor Summary | |
BiDirBubbleSort()
|
Method Summary | |
void |
sort(java.lang.Object[] a)
Sorts the items. |
Methods inherited from class oracle.dacf.util.AbstractSort |
getComparer, getSwapper, setComparer, setSwapper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BiDirBubbleSort()
Method Detail |
public void sort(java.lang.Object[] a)
sort
in class AbstractSort
a
- the array of objects to be sorted.java.lang.IllegalArgumentException
- if the comparer is not defined
|
Oracle Data-aware Controls Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |