Package eu.bandm.tools.util.java
Class Comparators
java.lang.Object
eu.bandm.tools.util.java.Comparators
Library of constants and combinators for classes implementing
Comparator
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(float a, float b, float epsilon) static <A> int
compare
(A x, A y) static <A> int
compare
(Comparator<? super A> c, A x, A y) static <A,
B> Comparators.EntryComparator<A, B> static <A,
B> Comparators.EntryComparator<A, B> entryComparator
(Comparator<? super A> c) static boolean
equals
(float a, float b, float epsilon) static <A> Comparator<A>
lexical
(List<? extends Comparator<? super A>> dims) static <A,
B extends Comparable<? super B>>
Comparator<A>static <A,
B> Comparator<A> measure
(Function<? super A, ? extends B> meas, Comparator<? super B> comp) static <A extends Comparable<? super A>>
Comparator<A>natural()
static <A> Comparator<A>
neutral()
static <A> Comparator<A>
-
Method Details
-
neutral
-
natural
-
lexical
-
compare
public static int compare(float a, float b, float epsilon) -
equals
public static boolean equals(float a, float b, float epsilon) -
measure
public static <A,B> Comparator<A> measure(Function<? super A, ? extends B> meas, Comparator<? super B> comp) -
measure
public static <A,B extends Comparable<? super B>> Comparator<A> measure(Function<? super A, ? extends B> meas) -
sequence
-
entryComparator
-
entryComparator
-
compare
public static <A> int compare(A x, A y) -
compare
-