Class FeedComparator

  • All Implemented Interfaces:
    Comparator<com.rometools.rome.feed.synd.SyndEntry>

    public class FeedComparator
    extends Object
    implements Comparator<com.rometools.rome.feed.synd.SyndEntry>
    A comparator of syndication feeds by their date.
    Author:
    mmoquillon
    • Constructor Detail

      • FeedComparator

        public FeedComparator()
      • FeedComparator

        public FeedComparator​(boolean reverseOrder)
    • Method Detail

      • compare

        public int compare​(com.rometools.rome.feed.synd.SyndEntry feedEntry1,
                           com.rometools.rome.feed.synd.SyndEntry feedEntry2)
        Specified by:
        compare in interface Comparator<com.rometools.rome.feed.synd.SyndEntry>