Package com.logicaldoc.core.document
Class DocumentComparator
- java.lang.Object
-
- com.logicaldoc.core.document.DocumentComparator
-
- All Implemented Interfaces:
Comparator<AbstractDocument>
public abstract class DocumentComparator extends Object implements Comparator<AbstractDocument>
Comparators to sort documents with different options- Since:
- 7.6.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Field Summary
Fields Modifier and Type Field Description static DocumentComparator
COMMENT_SORT
static DocumentComparator
CREATED_SORT
static DocumentComparator
CUSTOMID_SORT
static DocumentComparator
FILENAME_SORT
static DocumentComparator
FILESIZE_SORT
static DocumentComparator
FILEVERSION_SORT
static DocumentComparator
ID_SORT
static DocumentComparator
LASTMODIFIED_SORT
static DocumentComparator
PUBLISHED_SORT
static DocumentComparator
PUBSTATUS_SORT
static DocumentComparator
STARTPUB_SORT
static DocumentComparator
STOPPUB_SORT
static DocumentComparator
TYPE_SORT
static DocumentComparator
VERSION_SORT
static DocumentComparator
WFSTATUS_SORT
-
Constructor Summary
Constructors Constructor Description DocumentComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentComparator
descending(Comparator<AbstractDocument> other)
static Comparator<AbstractDocument>
getComparator(DocumentComparator... multipleOptions)
static Comparator<AbstractDocument>
getComparator(String sort)
static Comparator<AbstractDocument>
getComparator(List<DocumentComparator> multipleOptions)
static DocumentComparator
newComparatorForExtendedAttribute(String attribute)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
ID_SORT
public static DocumentComparator ID_SORT
-
FILENAME_SORT
public static DocumentComparator FILENAME_SORT
-
FILESIZE_SORT
public static DocumentComparator FILESIZE_SORT
-
VERSION_SORT
public static DocumentComparator VERSION_SORT
-
FILEVERSION_SORT
public static DocumentComparator FILEVERSION_SORT
-
LASTMODIFIED_SORT
public static DocumentComparator LASTMODIFIED_SORT
-
PUBLISHED_SORT
public static DocumentComparator PUBLISHED_SORT
-
CREATED_SORT
public static DocumentComparator CREATED_SORT
-
CUSTOMID_SORT
public static DocumentComparator CUSTOMID_SORT
-
TYPE_SORT
public static DocumentComparator TYPE_SORT
-
COMMENT_SORT
public static DocumentComparator COMMENT_SORT
-
STARTPUB_SORT
public static DocumentComparator STARTPUB_SORT
-
STOPPUB_SORT
public static DocumentComparator STOPPUB_SORT
-
WFSTATUS_SORT
public static DocumentComparator WFSTATUS_SORT
-
PUBSTATUS_SORT
public static DocumentComparator PUBSTATUS_SORT
-
-
Method Detail
-
descending
public static DocumentComparator descending(Comparator<AbstractDocument> other)
-
newComparatorForExtendedAttribute
public static DocumentComparator newComparatorForExtendedAttribute(String attribute)
-
getComparator
public static Comparator<AbstractDocument> getComparator(String sort)
-
getComparator
public static Comparator<AbstractDocument> getComparator(List<DocumentComparator> multipleOptions)
-
getComparator
public static Comparator<AbstractDocument> getComparator(DocumentComparator... multipleOptions)
-
-