T
- the array type, e.g. int[]
, double[]
or
Seq<String>
@FunctionalInterface public static interface ProxySorter.Comparator<T>
final ProxySorter.Comparator<double[]> comparator =
(a, i, j) -> Double.compare(a[i], a[j]);
double[]
arrays.ProxySorter.sort(Object, int, Comparator)
,
ProxySorter
Modifier and Type | Method and Description |
---|---|
int |
compare(T array,
int i,
int j)
Compares the two array elements, specified by its indices, for order.
|
default ProxySorter.Comparator<T> |
reversed()
Returns a comparator that imposes the reverse ordering of this
comparator.
|
int compare(T array, int i, int j)
array
- the array where the two comparing elements are fetchedi
- the index of the first array elementj
- the index of the second array elementNullPointerException
- if an argument is null and this
comparator does not permit null argumentsComparator.compare(Object, Object)
default ProxySorter.Comparator<T> reversed()
© 2007-2020 Franz Wilhelmstötter (2020-02-18 20:01)