org.wegra.util.collection.array
Class SetSort.Sorter

java.lang.Object
  extended byorg.wegra.util.collection.array.SetSort.Sorter
Enclosing class:
SetSort

public abstract static class SetSort.Sorter
extends java.lang.Object


Field Summary
static SetSort.Sorter INSERTION_SORTER
          Build-in Sorter which uses insertion sort algorithm.
static SetSort.Sorter QUICK_SORTER
          Build-in Sorter which uses quick sort algorithm.
 
Constructor Summary
SetSort.Sorter()
           
 
Method Summary
abstract  void sort(java.lang.Object[] data, int from, int to, java.util.Comparator comp)
          Sorts given data using some algorithm implemented by subclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUICK_SORTER

public static final SetSort.Sorter QUICK_SORTER
Build-in Sorter which uses quick sort algorithm.


INSERTION_SORTER

public static final SetSort.Sorter INSERTION_SORTER
Build-in Sorter which uses insertion sort algorithm.

Constructor Detail

SetSort.Sorter

public SetSort.Sorter()
Method Detail

sort

public abstract void sort(java.lang.Object[] data,
                          int from,
                          int to,
                          java.util.Comparator comp)
Sorts given data using some algorithm implemented by subclass.