net.sf.jsort
Interface SortAlgorithm

All Known Subinterfaces:
CompareSort, LinearSort
All Known Implementing Classes:
AbstractSort, BaseLinearSort, CountingSort, HeapSort, InsertSort, MergeInsertSort, MergeSort, QuickSort, RadixSort, RandomizedQuickSort

public interface SortAlgorithm

This interface represents most part of the sorting algorithms. There is a subclass of this interface of each type of sorting algorithm

Author:
domingos

Method Summary
 void sort(java.util.List list)
          Sort the list using it's natural order (i.e.
 void sort(java.util.List list, int start, int end)
          Sort a specific range of the list.
 void sort(java.lang.Object[] list)
          Sort the list using it's natural order (i.e.
 void sort(java.lang.Object[] list, int start, int end)
          Sort a specific range of the list.
 

Method Detail

sort

void sort(java.util.List list)
Sort the list using it's natural order (i.e. instance of Comparable)

Parameters:
list - to be sort
See Also:
Comparable

sort

void sort(java.util.List list,
          int start,
          int end)
Sort a specific range of the list.

Parameters:
list - to be sort

sort

void sort(java.lang.Object[] list)
Sort the list using it's natural order (i.e. instance of Comparable)

Parameters:
list - to be sort
See Also:
Comparable

sort

void sort(java.lang.Object[] list,
          int start,
          int end)
Sort a specific range of the list.

Parameters:
list - to be sort


Copyright © 2005-2008 Domingos Creado. All Rights Reserved.