Class KBObjectsModifiedDateComparator<T>
java.lang.Object
com.liferay.portal.kernel.util.OrderByComparator<T>
com.liferay.knowledge.base.util.comparator.KBObjectsModifiedDateComparator<T>
- All Implemented Interfaces:
com.liferay.petra.sql.dsl.query.sort.OrderByInfo
,Serializable
,Comparator<T>
public class KBObjectsModifiedDateComparator<T>
extends com.liferay.portal.kernel.util.OrderByComparator<T>
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKBObjectsModifiedDateComparator
(boolean ascending) KBObjectsModifiedDateComparator
(boolean ascending, boolean orderByModel) -
Method Summary
Modifier and TypeMethodDescriptionint
protected Date
getModifiedDate
(Object object) String[]
protected String
boolean
Methods inherited from class com.liferay.portal.kernel.util.OrderByComparator
getOrderByConditionFields, getOrderByConditionValues, 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
ORDER_BY_ASC
- See Also:
-
ORDER_BY_DESC
- See Also:
-
ORDER_BY_FIELDS
-
ORDER_BY_MODEL_ASC
- See Also:
-
ORDER_BY_MODEL_DESC
- See Also:
-
-
Constructor Details
-
KBObjectsModifiedDateComparator
public KBObjectsModifiedDateComparator() -
KBObjectsModifiedDateComparator
public KBObjectsModifiedDateComparator(boolean ascending) -
KBObjectsModifiedDateComparator
public KBObjectsModifiedDateComparator(boolean ascending, boolean orderByModel)
-
-
Method Details
-
compare
-
getOrderBy
- Overrides:
getOrderBy
in classcom.liferay.portal.kernel.util.OrderByComparator<T>
-
getOrderByFields
- Specified by:
getOrderByFields
in interfacecom.liferay.petra.sql.dsl.query.sort.OrderByInfo
- Overrides:
getOrderByFields
in classcom.liferay.portal.kernel.util.OrderByComparator<T>
-
isAscending
public boolean isAscending()- Overrides:
isAscending
in classcom.liferay.portal.kernel.util.OrderByComparator<T>
-
getModifiedDate
-
getTitle
-