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>

public class RepositoryModelReadCountComparator<T> extends OrderByComparator<T>
Author:
Brian Wing Shun Chan, Alexander Chow
See Also:
  • Field Details

  • Constructor Details

    • RepositoryModelReadCountComparator

      public RepositoryModelReadCountComparator()
    • RepositoryModelReadCountComparator

      public RepositoryModelReadCountComparator(boolean ascending)
    • RepositoryModelReadCountComparator

      public RepositoryModelReadCountComparator(boolean ascending, boolean orderByModel)
  • Method Details

    • compare

      public int compare(T t1, T t2)
    • getOrderBy

      public String getOrderBy()
      Overrides:
      getOrderBy in class OrderByComparator<T>
    • getOrderByFields

      public String[] getOrderByFields()
      Specified by:
      getOrderByFields in interface com.liferay.petra.sql.dsl.query.sort.OrderByInfo
      Overrides:
      getOrderByFields in class OrderByComparator<T>
    • isAscending

      public boolean isAscending()
      Overrides:
      isAscending in class OrderByComparator<T>
    • getFileShortcutReadCount

      protected long getFileShortcutReadCount(Object object)
    • getReadCount

      protected long getReadCount(Object object)