类 Datastore.Comp
java.lang.Object
com.sh.javax.datastore.Datastore.Comp
- 所有已实现的接口:
Comparator<Object>
- 封闭类:
- Datastore
自定义的排序器,用于Collection对象自动调用
-
构造器概要
构造器 -
方法概要
从类继承的方法 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
-
构造器详细资料
-
Comp
public Comp(int col, int order) 构造方法- 参数:
col- 字段编号order- 排序类型,1升序,其它表示降序
-
-
方法详细资料
-
compare
对象比较算法- 指定者:
compare在接口中Comparator<Object>- 参数:
a- 对象b- 对象- 返回:
- 0相等,小于0表示a<b,大于0表示a>b
-