类的使用
net.apexes.commons.lang.Comparators.ComparatorHelper
-
net.apexes.commons.lang中Comparators.ComparatorHelper的使用
修饰符和类型方法说明static <E> Comparators.ComparatorHelper<E>Comparators.ascBy(Comparators.Getter<E> getter) 参与对比的属性Comparators.ComparatorHelper.ascBy(Comparators.Getter<E> getter) 添加参与对比的属性,该属性升序Comparators.ComparatorHelper.descBy(Comparators.Getter<E> getter) 添加参与对比的属性,该属性倒序static <E> Comparators.ComparatorHelper<E>Comparators.descBy(Comparators.Getter<E> getter) 参与对比的属性Comparators.ComparatorHelper.nullLast()为null排在后面Comparators.ComparatorHelper.orderBy(Comparators.Getter<E> getter) 添加参与对比的属性,该属性升序Comparators.ComparatorHelper.orderBy(Comparators.Getter<E> getter, boolean asc) 添加参与对比的属性Comparators.ComparatorHelper.orderBy(Comparators.ObjectGetter<E, R> getter, Comparator<R> comparator) 添加参与对比的属性static <E> Comparators.ComparatorHelper<E>Comparators.orderBy(Comparators.Getter<E> getter) 参与对比的属性static <E> Comparators.ComparatorHelper<E>Comparators.orderBy(Comparators.Getter<E> getter, boolean asc) 参与对比的属性static <E,R> Comparators.ComparatorHelper<E> Comparators.orderBy(Comparators.ObjectGetter<E, R> getter, Comparator<R> comparator) 添加参与对比的属性