public class KBObjectsTitleComparator<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 |
static java.lang.String |
ORDER_BY_MODEL_ASC |
static java.lang.String |
ORDER_BY_MODEL_DESC |
Constructor and Description |
---|
KBObjectsTitleComparator() |
KBObjectsTitleComparator(boolean ascending) |
KBObjectsTitleComparator(boolean ascending,
boolean orderByModel) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T t1,
T t2) |
java.lang.String |
getOrderBy() |
java.lang.String[] |
getOrderByFields() |
protected java.lang.String |
getTitle(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 static final java.lang.String ORDER_BY_MODEL_ASC
public static final java.lang.String ORDER_BY_MODEL_DESC
public KBObjectsTitleComparator()
public KBObjectsTitleComparator(boolean ascending)
public KBObjectsTitleComparator(boolean ascending, boolean orderByModel)
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 getTitle(java.lang.Object object)