com.liferay.portlet.documentlibrary.util.comparator
Class RepositoryModelReadCountComparator<T>
java.lang.Object
com.liferay.portal.kernel.util.OrderByComparator<T>
com.liferay.portlet.documentlibrary.util.comparator.RepositoryModelReadCountComparator<T>
- All Implemented Interfaces:
- Serializable, Comparator<T>
public class RepositoryModelReadCountComparator<T>
- extends OrderByComparator<T>
- See Also:
- Serialized Form
ORDER_BY_ASC
public static final String ORDER_BY_ASC
- See Also:
- Constant Field Values
ORDER_BY_DESC
public static final String ORDER_BY_DESC
- See Also:
- Constant Field Values
ORDER_BY_FIELDS
public static final String[] ORDER_BY_FIELDS
ORDER_BY_MODEL_ASC
public static final String ORDER_BY_MODEL_ASC
- See Also:
- Constant Field Values
ORDER_BY_MODEL_DESC
public static final String ORDER_BY_MODEL_DESC
- See Also:
- Constant Field Values
RepositoryModelReadCountComparator
public RepositoryModelReadCountComparator()
RepositoryModelReadCountComparator
public RepositoryModelReadCountComparator(boolean ascending)
RepositoryModelReadCountComparator
public RepositoryModelReadCountComparator(boolean ascending,
boolean orderByModel)
compare
public int compare(T t1,
T t2)
getOrderBy
public String getOrderBy()
- Overrides:
getOrderBy in class OrderByComparator<T>
getOrderByFields
public String[] getOrderByFields()
- Overrides:
getOrderByFields in class OrderByComparator<T>
isAscending
public boolean isAscending()
- Overrides:
isAscending in class OrderByComparator<T>
getFileShortcutReadCount
protected long getFileShortcutReadCount(Object obj)
getReadCount
protected long getReadCount(Object obj)