Class PriorityComparator

java.lang.Object
io.goobi.viewer.model.cms.media.PriorityComparator
All Implemented Interfaces:
Comparator<CMSMediaItem>

public class PriorityComparator extends Object implements 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