Package tweetoscope.tweetsFilter
Class EmptyTweetFilter
java.lang.Object
tweetoscope.tweetsFilter.TweetFilter
tweetoscope.tweetsFilter.EmptyTweetFilter
- All Implemented Interfaces:
Flow.Publisher<com.twitter.clientlib.model.Tweet>
,Flow.Subscriber<com.twitter.clientlib.model.Tweet>
Empty Tweet filter: all Tweets are accepted
- Author:
- Virginie Galtier
-
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
-
Constructor Details
-
EmptyTweetFilter
public EmptyTweetFilter()
-
-
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
-