fable.utility
Class Filter

java.lang.Object
  extended by fable.utility.Filter

public class Filter
extends java.lang.Object

A Filter contains a class that is used to filter Articles from pseudofeeds

Author:
Christopher Moh

Method Summary
static PseudoFeed filterArticles(PseudoFeed ct, FilterStrategy f)
          Returns a list of articles filtered with the given FilterStrategy from an original list of articles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

filterArticles

public static PseudoFeed filterArticles(PseudoFeed ct,
                                        FilterStrategy f)
Returns a list of articles filtered with the given FilterStrategy from an original list of articles. Both lists are represented as PseudoFeeds

Parameters:
ct - PseudoFeed input
f - The FilterStrategy to use
Requires:
f != null, ct != null, for all elements x in ct.getChildren(), x != null