Class LastNTweetFilter

java.lang.Object
tweetoscope.tweetsFilter.TweetFilter
tweetoscope.tweetsFilter.LastNTweetFilter
All Implemented Interfaces:
Flow.Publisher<com.twitter.clientlib.model.Tweet>, Flow.Subscriber<com.twitter.clientlib.model.Tweet>

public class LastNTweetFilter extends TweetFilter
  • Field Details

    • months_threshold

      protected int months_threshold
  • Constructor Details

    • LastNTweetFilter

      public LastNTweetFilter(int month)
  • Method Details

    • match

      protected boolean match(com.twitter.clientlib.model.Tweet tweet)
      Description copied from class: TweetFilter
      Tests the filter conditions
      Specified by:
      match in class TweetFilter
      Parameters:
      tweet - Tweet to examine
      Returns:
      true if the Tweet complies with the filter, false if it doesn't match the filter conditions