Class UpdatedDateFilter

  • All Implemented Interfaces:
    EntryFilter

    public class UpdatedDateFilter
    extends Object
    implements EntryFilter
    Filters out all entries which occur before the last time of the entry we saw (assuming entries arrive sorted in order).
    • Constructor Detail

      • UpdatedDateFilter

        public UpdatedDateFilter​(Date lastUpdate)
    • Method Detail

      • isValidEntry

        public boolean isValidEntry​(FeedEndpoint endpoint,
                                    Object feed,
                                    Object entry)
        Description copied from interface: EntryFilter
        Tests to be used as filtering the feed for only entries of interest, such as only new entries, etc.
        Specified by:
        isValidEntry in interface EntryFilter
        Parameters:
        endpoint - the endpoint
        feed - the feed
        entry - the given entry to filter
        Returns:
        true to include the entry, false to skip it