public class RepositoryModelReadCountComparator<T> extends OrderByComparator<T>
Modifier and Type | Field and Description |
---|---|
static String |
ORDER_BY_ASC |
static String |
ORDER_BY_DESC |
static String[] |
ORDER_BY_FIELDS |
static String |
ORDER_BY_MODEL_ASC |
static String |
ORDER_BY_MODEL_DESC |
Constructor and Description |
---|
RepositoryModelReadCountComparator() |
RepositoryModelReadCountComparator(boolean ascending) |
RepositoryModelReadCountComparator(boolean ascending,
boolean orderByModel) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T t1,
T t2) |
protected long |
getFileShortcutReadCount(Object obj) |
String |
getOrderBy() |
String[] |
getOrderByFields() |
protected long |
getReadCount(Object obj) |
boolean |
isAscending() |
getOrderByConditionFields, getOrderByConditionValues, isAscending, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final String ORDER_BY_ASC
public static final String ORDER_BY_DESC
public static final String[] ORDER_BY_FIELDS
public static final String ORDER_BY_MODEL_ASC
public static final String ORDER_BY_MODEL_DESC
public RepositoryModelReadCountComparator()
public RepositoryModelReadCountComparator(boolean ascending)
public RepositoryModelReadCountComparator(boolean ascending, boolean orderByModel)
public String getOrderBy()
getOrderBy
in class OrderByComparator<T>
public String[] getOrderByFields()
getOrderByFields
in class OrderByComparator<T>
public boolean isAscending()
isAscending
in class OrderByComparator<T>
protected long getFileShortcutReadCount(Object obj)
protected long getReadCount(Object obj)