public abstract class Comparators extends Object
Modifier and Type | Method and Description |
---|---|
static <A> Comparator<A> |
cache(Comparator<? super A> c) |
static <A> int |
compare(A x,
A y) |
static <A> int |
compare(Comparator<? super A> c,
A x,
A y) |
static <A,B> eu.bandm.tools.ops.Comparators.EntryComparator<A,B> |
entryComparator() |
static <A,B> eu.bandm.tools.ops.Comparators.EntryComparator<A,B> |
entryComparator(Comparator<? super A> c) |
static <A> Comparator<A> |
index(Index<? super A> index) |
static Comparator<Tuple0> |
lexical() |
static <A0> Comparator<A0> |
lexical(Comparator<A0> c0) |
static <A0,A1> Comparator<Tuple2<A0,A1>> |
lexical(Comparator<A0> c0,
Comparator<A1> c1) |
static <A0,A1,A2> Comparator<Tuple3<A0,A1,A2>> |
lexical(Comparator<A0> c0,
Comparator<A1> c1,
Comparator<A2> c2) |
static <A> Comparator<A> |
lexical(List<? extends Comparator<? super A>> dims) |
static Comparator<Tuple0> |
lexical0() |
static <A0> Comparator<A0> |
lexical1(Comparator<A0> c0) |
static <A0,A1> Comparator<Tuple2<A0,A1>> |
lexical2(Comparator<A0> c0,
Comparator<A1> c1) |
static <A0,A1,A2> Comparator<Tuple3<A0,A1,A2>> |
lexical3(Comparator<A0> c0,
Comparator<A1> c1,
Comparator<A2> c2) |
static <A,B extends Comparable<? super B>> |
measure(Function<? super A,? extends B> meas) |
static <A,B> Comparator<A> |
measure(Function<? super A,? extends B> meas,
Comparator<? super B> comp) |
static <A extends Comparable<? super A>> |
natural() |
static <A> Comparator<A> |
neutral() |
static <A> Comparator<A> |
sequence(List<? extends A> elems) |
public static <A> Comparator<A> neutral()
public static <A extends Comparable<? super A>> Comparator<A> natural()
public static <A> Comparator<A> lexical(List<? extends Comparator<? super A>> dims)
public static <A,B> Comparator<A> measure(Function<? super A,? extends B> meas, Comparator<? super B> comp)
public static <A,B extends Comparable<? super B>> Comparator<A> measure(Function<? super A,? extends B> meas)
public static <A> Comparator<A> sequence(List<? extends A> elems)
public static <A> Comparator<A> index(Index<? super A> index)
public static <A> Comparator<A> cache(Comparator<? super A> c)
public static <A,B> eu.bandm.tools.ops.Comparators.EntryComparator<A,B> entryComparator(Comparator<? super A> c)
public static <A,B> eu.bandm.tools.ops.Comparators.EntryComparator<A,B> entryComparator()
public static <A> int compare(A x, A y)
public static <A> int compare(Comparator<? super A> c, A x, A y)
public static Comparator<Tuple0> lexical()
public static Comparator<Tuple0> lexical0()
public static <A0> Comparator<A0> lexical(Comparator<A0> c0)
public static <A0> Comparator<A0> lexical1(Comparator<A0> c0)
public static <A0,A1> Comparator<Tuple2<A0,A1>> lexical(Comparator<A0> c0, Comparator<A1> c1)
public static <A0,A1> Comparator<Tuple2<A0,A1>> lexical2(Comparator<A0> c0, Comparator<A1> c1)
public static <A0,A1,A2> Comparator<Tuple3<A0,A1,A2>> lexical(Comparator<A0> c0, Comparator<A1> c1, Comparator<A2> c2)
public static <A0,A1,A2> Comparator<Tuple3<A0,A1,A2>> lexical3(Comparator<A0> c0, Comparator<A1> c1, Comparator<A2> c2)
see also the complete user documentation .