|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiDimSort
This interface represents a sort on multidimensional arrays. It is
used to sort arrays of objects which are multidimensional in the
sense that they implement the MultiDimComparable
interface. It can also sort arrays of arrays of double's
(double[][]).
For MultiDimComparable
objects, the dimension mentioned
below refers to the value returned by
dimension
.
Method dimension
returns the greatest dimension used in
the sort. The dimension of the objects must be greater or equal to
this dimension.
Method Summary | ||
---|---|---|
int |
dimension()
Returns the greatest dimension used in the sort. |
|
void |
sort(double[][] a)
Sorts the entire array. |
|
void |
sort(double[][] a,
int iMin,
int iMax)
Sorts the subarray of a made of the elements with indices from iMin to iMax-1. |
|
|
sort(T[] a)
Sorts the entire array. |
|
|
sort(T[] a,
int iMin,
int iMax)
Sorts the subarray of a made of the elements with indices from iMin to iMax-1. |
Method Detail |
---|
<T extends MultiDimComparable<? super T>> void sort(T[] a, int iMin, int iMax)
a
- array to sortiMin
- index of first element to sortiMax
- index of last element to sort is
<T extends MultiDimComparable<? super T>> void sort(T[] a)
a
- array to sortvoid sort(double[][] a, int iMin, int iMax)
a
- array to sortiMin
- index of first element to sortiMax
- index of last element to sort is
void sort(double[][] a)
a
- array to sortint dimension()
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |