Package io.goobi.viewer.model.cms.media
Class PriorityComparator
java.lang.Object
io.goobi.viewer.model.cms.media.PriorityComparator
- All Implemented Interfaces:
Comparator<CMSMediaItem>
Comparator that sorts as many items marked as high priority to the beginning of the list as are given in the constructor The remaining items will
be sorted randomly if the random parameter is true or else by the
CMSMediaItem.compareTo(CMSMediaItem)- Author:
- florian
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PriorityComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<CMSMediaItem>
-