Class FeedComparator
java.lang.Object
org.silverpeas.components.rssaggregator.service.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(com.rometools.rome.feed.synd.SyndEntry feedEntry1, com.rometools.rome.feed.synd.SyndEntry feedEntry2) 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
-
FeedComparator
public FeedComparator(boolean reverseOrder)
-
-
Method Details
-
compare
public int compare(com.rometools.rome.feed.synd.SyndEntry feedEntry1, com.rometools.rome.feed.synd.SyndEntry feedEntry2) - Specified by:
comparein interfaceComparator<com.rometools.rome.feed.synd.SyndEntry>
-