A
- the input Iterable and output List element typepublic final class SortWith<A> extends Object implements Fn2<Comparator<? super A>,Iterable<A>,List<A>>
Iterable
and a Comparator
over the Iterable
element type, produce a
sorted List
of the original elements based on sorting applied by the Comparator
. Note that
this is both eager and monolithic.Modifier and Type | Method and Description |
---|---|
List<A> |
checkedApply(Comparator<? super A> comparator,
Iterable<A> as) |
static <A> SortWith<A> |
sortWith() |
static <A> Fn1<Iterable<A>,List<A>> |
sortWith(Comparator<? super A> comparator) |
static <A> List<A> |
sortWith(Comparator<? super A> comparator,
Iterable<A> as) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, flip, fn2, fromBiFunction, toBiFunction, uncurry, widen
public List<A> checkedApply(Comparator<? super A> comparator, Iterable<A> as)
checkedApply
in interface Fn2<Comparator<? super A>,Iterable<A>,List<A>>
public static <A> SortWith<A> sortWith()
public static <A> Fn1<Iterable<A>,List<A>> sortWith(Comparator<? super A> comparator)
public static <A> List<A> sortWith(Comparator<? super A> comparator, Iterable<A> as)