Package tweetoscope.tweetsFilter
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>
-
Field Summary
Fields inherited from class tweetoscope.tweetsFilter.TweetFilter
subscribers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
match
(com.twitter.clientlib.model.Tweet tweet) Tests the filter conditionsMethods inherited from class tweetoscope.tweetsFilter.TweetFilter
onComplete, onError, onNext, onSubscribe, subscribe
-
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 classTweetFilter
- Parameters:
tweet
- Tweet to examine- Returns:
- true if the Tweet complies with the filter, false if it doesn't match the filter conditions
-