|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jga.algorithms.Sort
public class Sort
Adapts standard java Sort capabilities to the interfaces common to jga.
Copyright © 2006 David A. Hall
Constructor Summary | |
---|---|
Sort()
|
Method Summary | ||
---|---|---|
static
|
sort(java.lang.Iterable<? extends T> i,
TCollection co)
Appends the sorted contents of the input to the output. |
|
static
|
sort(java.lang.Iterable<T> i)
Returns an iterable object over the sorted contents of the input. |
|
static
|
sort(java.lang.Iterable<T> i,
java.util.Comparator<? super T> comp)
Returns an iterable object over the sorted contents of the input, using the given comparator to determine ordering. |
|
static
|
sort(java.lang.Iterable<T> i,
java.util.Comparator<? super T> comp,
TCollection co)
Appends the sorted contents of the input to the output, using the given comparator to determine ordering. |
|
static
|
sort(java.util.Iterator<T> i)
Returns an iterator object over the sorted contents of the input. |
|
static
|
sort(java.util.Iterator<T> i,
java.util.Comparator<? super T> comp)
Returns an iterator object over the sorted contents of the input, using the given comparator to determine ordering. |
|
static
|
sort(T[] ts)
Returns an iterable object over the sorted contents of the array. |
|
static
|
sort(T[] ts,
java.util.Comparator<? super T> comp)
Returns an iterable object over the sorted contents of the array, using the given comparator to determine ordering. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sort()
Method Detail |
---|
public static <T extends java.lang.Comparable<? super T>> java.lang.Iterable<T> sort(T[] ts)
public static <T> java.lang.Iterable<T> sort(T[] ts, java.util.Comparator<? super T> comp)
public static <T extends java.lang.Comparable<? super T>> java.lang.Iterable<T> sort(java.lang.Iterable<T> i)
public static <T> java.lang.Iterable<T> sort(java.lang.Iterable<T> i, java.util.Comparator<? super T> comp)
public static <T extends java.lang.Comparable<? super T>> java.util.Iterator<T> sort(java.util.Iterator<T> i)
public static <T> java.util.Iterator<T> sort(java.util.Iterator<T> i, java.util.Comparator<? super T> comp)
public static <T extends java.lang.Comparable<? super T>,TCollection extends java.util.Collection<? super T>> TCollection sort(java.lang.Iterable<? extends T> i, TCollection co)
public static <T,TCollection extends java.util.Collection<? super T>> TCollection sort(java.lang.Iterable<T> i, java.util.Comparator<? super T> comp, TCollection co)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |