org.alfresco.web.data
Class QuickSort
java.lang.Object
org.alfresco.web.data.Sort
org.alfresco.web.data.QuickSort
public final class QuickSort
- extends Sort
QuickSort
Implementation of a locale sensitive Quick Sort algorithm. The sorting supports
locale specific case sensitive, case in-sensitive and numeric data sorting. The
numeric sorting handles integer, floating point and scientific formats, with
short-circuit value parsing.
|
Constructor Summary |
QuickSort(java.util.List data,
java.lang.String column,
boolean bForward,
java.lang.String mode)
Constructor |
|
Method Summary |
void |
sort()
Runs the Quick Sort routine on the current dataset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuickSort
public QuickSort(java.util.List data,
java.lang.String column,
boolean bForward,
java.lang.String mode)
- Constructor
- Parameters:
data - a the List of String[] data to sortcolumn - the column getter method to use on the row to sortbForward - true for a forward sort, false for a reverse sortmode - sort mode to use (see IDataContainer constants)
sort
public void sort()
- Runs the Quick Sort routine on the current dataset
- Specified by:
sort in class Sort
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.