Class KBObjectsViewCountComparator<T>

java.lang.Object
com.liferay.portal.kernel.util.OrderByComparator<T>
com.liferay.knowledge.base.util.comparator.KBObjectsViewCountComparator<T>
All Implemented Interfaces:
com.liferay.petra.sql.dsl.query.sort.OrderByInfo, Serializable, Comparator<T>

public class KBObjectsViewCountComparator<T> extends com.liferay.portal.kernel.util.OrderByComparator<T>
See Also:
  • Field Details

  • Method Details

    • getInstance

      public static KBObjectsViewCountComparator getInstance(boolean ascending)
    • compare

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

      public String getOrderBy()
      Overrides:
      getOrderBy in class com.liferay.portal.kernel.util.OrderByComparator<T>
    • getOrderByFields

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

      public boolean isAscending()
      Overrides:
      isAscending in class com.liferay.portal.kernel.util.OrderByComparator<T>
    • getName

      protected String getName(Object object)
    • getViewCount

      protected long getViewCount(Object object)