Class RepositoryModelReadCountComparator<T>
Object
com.liferay.portal.kernel.util.OrderByComparator<T>
com.liferay.document.library.kernel.util.comparator.RepositoryModelReadCountComparator<T>
- All Implemented Interfaces:
com.liferay.petra.sql.dsl.query.sort.OrderByInfo,Serializable,Comparator<T>
- Author:
- Brian Wing Shun Chan, Alexander Chow
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryModelReadCountComparator(boolean ascending) RepositoryModelReadCountComparator(boolean ascending, boolean orderByModel) -
Method Summary
Modifier and TypeMethodDescriptionintprotected longgetFileShortcutReadCount(Object object) String[]protected longgetReadCount(Object object) booleanMethods inherited from class com.liferay.portal.kernel.util.OrderByComparator
getOrderByConditionFields, getOrderByConditionValues, isAscending, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
RepositoryModelReadCountComparator
public RepositoryModelReadCountComparator() -
RepositoryModelReadCountComparator
public RepositoryModelReadCountComparator(boolean ascending) -
RepositoryModelReadCountComparator
public RepositoryModelReadCountComparator(boolean ascending, boolean orderByModel)
-
-
Method Details
-
compare
-
getOrderBy
- Overrides:
getOrderByin classOrderByComparator<T>
-
getOrderByFields
- Specified by:
getOrderByFieldsin interfacecom.liferay.petra.sql.dsl.query.sort.OrderByInfo- Overrides:
getOrderByFieldsin classOrderByComparator<T>
-
isAscending
public boolean isAscending()- Overrides:
isAscendingin classOrderByComparator<T>
-
getFileShortcutReadCount
-
getReadCount
-