Class PriorityFirstComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<ResourceAggregator.RecordedHeaderItem>

    public class PriorityFirstComparator
    extends java.lang.Object
    implements java.util.Comparator<ResourceAggregator.RecordedHeaderItem>, java.io.Serializable
    Implements the default sorting algorithm for HeaderItems. PriorityHeaderItems are moved to the front, inverting the component order to convert the child-first into a parent-first order. If renderPageFirst is true, the head from the markup of a page is moved to the front of the header, directly after the priority header items.
    Author:
    papegaaij
    See Also:
    Serialized Form