|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.collections.Sequence.Sort
public static class Sequence.Sort
Contains utility methods for sorting sequences.
Constructor Summary | |
---|---|
Sequence.Sort()
|
Method Summary | ||
---|---|---|
static
|
quickSort(Sequence<T> sequence)
Performs a quicksort on the sequence for the given comparable type. |
|
static
|
quickSort(Sequence<T> sequence,
java.util.Comparator<T> comparator)
Performs a quicksort on the sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sequence.Sort()
Method Detail |
---|
public static <T extends java.lang.Comparable<? super T>> void quickSort(Sequence<T> sequence)
quickSort(Sequence, Comparator)
.
public static <T> void quickSort(Sequence<T> sequence, java.util.Comparator<T> comparator)
sequence
- The sequence to sort.comparator
- Comparator that determines element order.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |