igeo
Class ISort

java.lang.Object
  extended by igeo.ISort

public class ISort
extends java.lang.Object

A class to sort objects in the order defined by a comparator implementing IComparator interface.

See Also:
IComparator

Constructor Summary
ISort()
           
 
Method Summary
static
<T> java.util.List<T>
bubbleSort(java.util.List<T> target, IComparator<T> comparator)
           
static
<T> java.util.List<T>
sort(java.util.List<T> target, IComparator<T> comparator)
           
static
<T> void
sort(java.util.List<T> target, IComparator<T> comparator, int from, int to)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISort

public ISort()
Method Detail

sort

public static <T> void sort(java.util.List<T> target,
                            IComparator<T> comparator,
                            int from,
                            int to)

sort

public static <T> java.util.List<T> sort(java.util.List<T> target,
                                         IComparator<T> comparator)

bubbleSort

public static <T> java.util.List<T> bubbleSort(java.util.List<T> target,
                                               IComparator<T> comparator)