public class ComparatorUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <Type,Aspect> |
compareBy(java.util.function.Function<? super Type,? extends Aspect> aspect,
java.util.Comparator<? super Aspect> comparator) |
static <T> boolean |
equalsNullable(T a,
T b) |
static <T extends java.lang.Comparable<? super T>> |
max(T o1,
T o2) |
static <T extends java.lang.Comparable<? super T>> |
min(T o1,
T o2) |
public static <Type,Aspect> java.util.Comparator<Type> compareBy(java.util.function.Function<? super Type,? extends Aspect> aspect, java.util.Comparator<? super Aspect> comparator)
public static <T extends java.lang.Comparable<? super T>> T max(T o1, T o2)
public static <T extends java.lang.Comparable<? super T>> T min(T o1, T o2)
public static <T> boolean equalsNullable(T a, T b)