public class KBObjectsViewCountComparator<T>
extends com.liferay.portal.kernel.util.OrderByComparator<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ORDER_BY_ASC |
static java.lang.String |
ORDER_BY_DESC |
static java.lang.String[] |
ORDER_BY_FIELDS |
Constructor and Description |
---|
KBObjectsViewCountComparator() |
KBObjectsViewCountComparator(boolean ascending) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T t1,
T t2) |
protected java.lang.String |
getName(java.lang.Object object) |
java.lang.String |
getOrderBy() |
java.lang.String[] |
getOrderByFields() |
protected long |
getViewCount(java.lang.Object object) |
boolean |
isAscending() |
getOrderByConditionFields, getOrderByConditionValues, isAscending, toString
public static final java.lang.String ORDER_BY_ASC
public static final java.lang.String ORDER_BY_DESC
public static final java.lang.String[] ORDER_BY_FIELDS
public KBObjectsViewCountComparator()
public KBObjectsViewCountComparator(boolean ascending)
public java.lang.String getOrderBy()
getOrderBy
in class com.liferay.portal.kernel.util.OrderByComparator<T>
public java.lang.String[] getOrderByFields()
getOrderByFields
in interface com.liferay.petra.sql.dsl.query.sort.OrderByInfo
getOrderByFields
in class com.liferay.portal.kernel.util.OrderByComparator<T>
public boolean isAscending()
isAscending
in class com.liferay.portal.kernel.util.OrderByComparator<T>
protected java.lang.String getName(java.lang.Object object)
protected long getViewCount(java.lang.Object object)