| java.lang.Object org.eclipse.ui.dialogs.TwoArrayQuickSorter
TwoArrayQuickSorter | class TwoArrayQuickSorter (Code) | | Quick sort to sort key-value pairs. The keys and arrays are specified
in separate arrays.
since: 2.0 |
Inner Class :final public static class StringComparator implements Comparator | |
Constructor Summary | |
public | TwoArrayQuickSorter(boolean ignoreCase) Creates a sorter with default string comparator. | public | TwoArrayQuickSorter(Comparator comparator) Creates a sorter with a comparator.
Parameters: comparator - the comparator to order the elements. |
Method Summary | |
public void | sort(Object[] keys, Object[] values) Sorts keys and values in parallel. |
TwoArrayQuickSorter | public TwoArrayQuickSorter(boolean ignoreCase)(Code) | | Creates a sorter with default string comparator.
The keys are assumed to be strings.
Parameters: ignoreCase - specifies whether sorting is case sensitive or not. |
TwoArrayQuickSorter | public TwoArrayQuickSorter(Comparator comparator)(Code) | | Creates a sorter with a comparator.
Parameters: comparator - the comparator to order the elements. The comparator must not be null . |
sort | public void sort(Object[] keys, Object[] values)(Code) | | Sorts keys and values in parallel.
Parameters: keys - the keys to use for sorting. Parameters: values - the values associated with the keys. |
|
|