public class OrdinalCalculator extends Object
Implements the QuickSelect algorithm, but modifies it to select multiple ordinals all at once.
| Constructor and Description |
|---|
OrdinalCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
putOrdinalsInPosition(List<T> list,
Collection<Integer> ordinals)
Calculates a set of ordinal values for a given list of comparable objects.
|
public static <T extends Comparable<T>> void putOrdinalsInPosition(List<T> list, Collection<Integer> ordinals)
list - the list of Comparable objectsordinals - the collection ordinals to calculate (0 to (size of list) - 1)Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.