org.tinygroup.dbrouter.util
类 SortOrder
java.lang.Object
org.tinygroup.dbrouter.util.SortOrder
- 所有已实现的接口:
- Comparator<OrderByProcessor.OrderByValues>
public class SortOrder
- extends Object
- implements Comparator<OrderByProcessor.OrderByValues>
功能说明: 对象排序比较器
开发人员: renhui
开发时间: 2013-12-19
|
构造方法摘要 |
SortOrder(boolean[] orderTypes,
int[] orderIndexes)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortOrder
public SortOrder(boolean[] orderTypes,
int[] orderIndexes)
getOrderTypes
public boolean[] getOrderTypes()
setOrderTypes
public void setOrderTypes(boolean[] orderTypes)
compare
public int compare(OrderByProcessor.OrderByValues o1,
OrderByProcessor.OrderByValues o2)
- null值在升序时排在最后
- 指定者:
- 接口
Comparator<OrderByProcessor.OrderByValues> 中的 compare
Copyright © 2006–2015 TinyGroup. All rights reserved.