类 SorterBuilder<T>
- java.lang.Object
-
- io.github.burukeyou.dataframe.iframe.window.SorterBuilder<T>
-
- 所有已实现的接口:
Sorter<T>,Comparator<T>
public class SorterBuilder<T> extends Object implements Sorter<T>
- 作者:
- caizhiao
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Comparator<T>comparator
-
构造器概要
构造器 构造器 说明 SorterBuilder(Comparator<T> comparator)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intcompare(T o1, T o2)Sorter<T>sort(Comparator<T> comparator)Sort by Comparator<U extends Comparable<? super U>>
Sorter<T>sortAsc(java.util.function.Function<T,U> sortField)Sort in ascending order based on specified fields<U extends Comparable<? super U>>
Sorter<T>sortDesc(java.util.function.Function<T,U> sortField)Sort in descending order based on specified fields-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
从接口继承的方法 io.github.burukeyou.dataframe.iframe.window.Sorter
getComparator
-
-
-
-
字段详细资料
-
comparator
protected Comparator<T> comparator
-
-
构造器详细资料
-
SorterBuilder
public SorterBuilder(Comparator<T> comparator)
-
-
方法详细资料
-
sortAsc
public <U extends Comparable<? super U>> Sorter<T> sortAsc(java.util.function.Function<T,U> sortField)
从接口复制的说明:SorterSort in ascending order based on specified fields
-
sortDesc
public <U extends Comparable<? super U>> Sorter<T> sortDesc(java.util.function.Function<T,U> sortField)
从接口复制的说明:SorterSort in descending order based on specified fields
-
sort
public Sorter<T> sort(Comparator<T> comparator)
从接口复制的说明:SorterSort by Comparator
-
compare
public int compare(T o1, T o2)
- 指定者:
compare在接口中Comparator<T>
-
-