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)
           
 
方法摘要
 int compare(OrderByProcessor.OrderByValues o1, OrderByProcessor.OrderByValues o2)
          null值在升序时排在最后
 boolean[] getOrderTypes()
           
 void setOrderTypes(boolean[] orderTypes)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 java.util.Comparator 继承的方法
equals
 

构造方法详细信息

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.