接口的使用
net.apexes.commons.lang.Comparators.Getter
使用Comparators.Getter的程序包
-
net.apexes.commons.lang中Comparators.Getter的使用
修饰符和类型方法说明static <E> Comparators.ComparatorHelper<E>Comparators.ascBy(Comparators.Getter<E> getter) 参与对比的属性Comparators.ComparatorHelper.ascBy(Comparators.Getter<E> getter) 添加参与对比的属性,该属性升序static <E> voidComparators.ascSort(List<E> list, Comparators.Getter<E> getter) 对列表进行升序排序,为null排在前面static <E> voidComparators.ascSortNullLast(List<E> list, Comparators.Getter<E> getter) 对列表进行升序排序,为null排在后面Comparators.ComparatorHelper.descBy(Comparators.Getter<E> getter) 添加参与对比的属性,该属性倒序static <E> Comparators.ComparatorHelper<E>Comparators.descBy(Comparators.Getter<E> getter) 参与对比的属性static <E> voidComparators.descSort(List<E> list, Comparators.Getter<E> getter) 对列表进行降序排序,为null排在前面static <E> voidComparators.descSortNullLast(List<E> list, Comparators.Getter<E> getter) 对列表进行降序排序,为null排在后面Comparators.ComparatorHelper.orderBy(Comparators.Getter<E> getter) 添加参与对比的属性,该属性升序Comparators.ComparatorHelper.orderBy(Comparators.Getter<E> getter, boolean asc) 添加参与对比的属性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> voidComparators.sort(List<E> list, Comparators.Getter<E> getter) 对列表进行升序排序,为null的排在前面static <E> voidComparators.sort(List<E> list, Comparators.Getter<E> getter, boolean asc) 对列表进行排序,为null的排在前面static <E> voidComparators.sortNullLast(List<E> list, Comparators.Getter<E> getter) 对列表进行排序,为null排在后面static <E> voidComparators.sortNullLast(List<E> list, Comparators.Getter<E> getter, boolean asc) 对列表进行排序,为null排在后面