Package twitter4j.v1
Class FilterQuery
java.lang.Object
twitter4j.v1.FilterQuery
- All Implemented Interfaces:
Serializable
- Since:
- Twitter4J 2.1.2
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
countfinal FilterQuery.FilterLevel
filter levelfinal long[]
followfinal String[]
languagefinal double[][]
locationsfinal String[]
track -
Method Summary
Modifier and TypeMethodDescriptioncount
(int count) Creates a new FilterQuery with specified valuesboolean
filterLevel
(@NotNull FilterQuery.FilterLevel filterLevel) The filter level limits what tweets appear in the stream to those with a minimum filter_level attribute value.follow
(long... follow) Creates a new FilterQuery with specified valuesint
hashCode()
Sets languagelocations
(double @NotNull [][] locations) Creates a new FilterQuery with specified valuesstatic FilterQuery
ofFollow
(long... follow) Creates a new FilterQuery with specified valuesstatic FilterQuery
ofLocations
(double @NotNull [][] locations) Creates a new FilterQuery with specified valuesstatic FilterQuery
Creates a new FilterQuerytoString()
Creates a new FilterQuery
-
Field Details
-
count
public final int countcount -
follow
public final long[] followfollow -
track
track -
locations
public final double[][] locationslocations -
language
language -
filterLevel
filter level
-
-
Method Details
-
count
Creates a new FilterQuery with specified values- Parameters:
count
- Indicates the number of previous statuses to stream before transitioning to the live stream.- Returns:
- new FilterQuery instance
-
ofFollow
Creates a new FilterQuery with specified values- Parameters:
follow
- Specifies the users, by ID, to receive public tweets from.- Returns:
- FilterQuery
-
follow
Creates a new FilterQuery with specified values- Parameters:
follow
- Specifies the users, by ID, to receive public tweets from.- Returns:
- FilterQuery
-
ofTrack
Creates a new FilterQuery- Parameters:
track
- Specifies keywords to track.- Returns:
- new FilterQuery instance
- Since:
- Twitter4J 4.0.4
-
track
Creates a new FilterQuery- Parameters:
track
- Specifies keywords to track.- Returns:
- new FilterQuery instance
- Since:
- Twitter4J 4.0.4
-
ofLocations
Creates a new FilterQuery with specified values- Parameters:
locations
- Specifies the locations to track. 2D array- Returns:
- new FilterQuery instance
-
locations
Creates a new FilterQuery with specified values- Parameters:
locations
- Specifies the locations to track. 2D array- Returns:
- new FilterQuery instance
-
language
Sets language- Parameters:
language
- Specifies languages to track.- Returns:
- new FilterQuery instance
-
filterLevel
The filter level limits what tweets appear in the stream to those with a minimum filter_level attribute value.- Parameters:
filterLevel
- one of either none, low, or medium.- Returns:
- new FilterQuery instance
-
equals
-
hashCode
public int hashCode() -
toString
-