Package org.mycore.restapi.v1.utils
Class MCRRestAPISortObjectComparator
java.lang.Object
org.mycore.restapi.v1.utils.MCRRestAPISortObjectComparator
- All Implemented Interfaces:
Comparator<MCRObjectIDDate>
Comparator to sort a collection of result objects by id or date
ToDo: Check if this can be replaced with SOLR functionality
- Version:
- $Revision: $ $Date: $
- Author:
- Robert Stephan
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MCRRestAPISortObjectComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<MCRObjectIDDate>
-