org.alfresco.web.data
Class MergeSort

java.lang.Object
  extended by org.alfresco.web.data.Sort
      extended by org.alfresco.web.data.MergeSort

public final class MergeSort
extends Sort


Field Summary
 
Fields inherited from class org.alfresco.web.data.Sort
bForward, collator, column, data, keys, sortMode
 
Constructor Summary
MergeSort(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 org.alfresco.web.data.Sort
buildCollationKeys, getComparator, getGetterMethodName, swap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeSort

public MergeSort(java.util.List data,
                 java.lang.String column,
                 boolean bForward,
                 java.lang.String mode)
Constructor

Parameters:
data - a the List of String[] data to sort
column - the column getter method to use on the row to sort
bForward - true for a forward sort, false for a reverse sort
mode - sort mode to use (see IDataContainer constants)
Method Detail

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.