public class FastSort
extends java.lang.Object
In JDK < v7, implementation of merge sort (implemented in Arrays.sort) is
not the best one: there is redundant object array cloning, many small methods that
can be inlined etc.
This class brings the best sorting implementations, so they can be used on JDK5 and JDK6, too.
| Constructor and Description |
|---|
FastSort() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sort(java.lang.Comparable[] array)
Sorts an array of comparables.
|
static <T> void |
sort(T[] array,
java.util.Comparator<T> comparator)
Sorts an array using given comparator.
|
Copyright © 2003-2013 Jodd Team