igeo
Class ISort
java.lang.Object
igeo.ISort
public class ISort
- extends java.lang.Object
A class to sort objects in the order defined by a comparator implementing IComparator interface.
- Version:
- 0.7.0.0;
- Author:
- Satoru Sugihara
- See Also:
IComparator
Constructor Summary |
ISort()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISort
public ISort()
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)