Liferay 7.0-ce-b4

com.liferay.portal.kernel.util
Class OrderByComparatorFactoryUtil.DefaultOrderByComparator<T extends BaseModel<T>>

java.lang.Object
  extended by com.liferay.portal.kernel.util.OrderByComparator<T>
      extended by com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil.DefaultOrderByComparator<T>
All Implemented Interfaces:
Serializable, Comparator<T>
Enclosing class:
OrderByComparatorFactoryUtil

protected static class OrderByComparatorFactoryUtil.DefaultOrderByComparator<T extends BaseModel<T>>
extends OrderByComparator<T>

See Also:
Serialized Form

Method Summary
 int compare(T object1, T object2)
           
 String getOrderBy()
           
 boolean isAscending(String field)
           
 
Methods inherited from class com.liferay.portal.kernel.util.OrderByComparator
getOrderByConditionFields, getOrderByConditionValues, getOrderByFields, isAscending, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Method Detail

compare

public int compare(T object1,
                   T object2)

getOrderBy

public String getOrderBy()
Overrides:
getOrderBy in class OrderByComparator<T extends BaseModel<T>>

isAscending

public boolean isAscending(String field)
Overrides:
isAscending in class OrderByComparator<T extends BaseModel<T>>

Liferay 7.0-ce-b4