twitter4j
Class FilterQuery

java.lang.Object
  extended by twitter4j.FilterQuery
All Implemented Interfaces:
java.io.Serializable

public final class FilterQuery
extends java.lang.Object
implements java.io.Serializable

Since:
Twitter4J 2.1.2
Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
Serialized Form

Field Summary
private  int count
           
private  long[] follow
           
private  boolean includeEntities
           
private  double[][] locations
           
private static long serialVersionUID
           
private  java.lang.String[] track
           
 
Constructor Summary
FilterQuery()
          Creates a new FilterQuery
FilterQuery(int count, long[] follow)
          Creates a new FilterQuery
FilterQuery(int count, long[] follow, java.lang.String[] track)
          Creates a new FilterQuery
FilterQuery(int count, long[] follow, java.lang.String[] track, double[][] locations)
          Creates a new FilterQuery
FilterQuery(long[] follow)
          Creates a new FilterQuery
 
Method Summary
(package private)  twitter4j.internal.http.HttpParameter[] asHttpParameterArray()
           
 FilterQuery count(int count)
          Sets count
 boolean equals(java.lang.Object o)
           
 FilterQuery follow(long[] follow)
          Sets follow
 int hashCode()
           
 FilterQuery locations(double[][] locations)
          Sets locations
 FilterQuery setIncludeEntities(boolean include)
          Set whether to include extracted entities in the stream.
private  java.lang.String toLocationsString(double[][] keywords)
           
 java.lang.String toString()
           
 FilterQuery track(java.lang.String[] track)
          Sets track
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

count

private int count

follow

private long[] follow

track

private java.lang.String[] track

locations

private double[][] locations

includeEntities

private boolean includeEntities
Constructor Detail

FilterQuery

public FilterQuery()
Creates a new FilterQuery


FilterQuery

public FilterQuery(long[] follow)
Creates a new FilterQuery

Parameters:
follow - Specifies the users, by ID, to receive public tweets from.

FilterQuery

public FilterQuery(int count,
                   long[] follow)
Creates a new FilterQuery

Parameters:
count - Indicates the number of previous statuses to stream before transitioning to the live stream.
follow - Specifies the users, by ID, to receive public tweets from.

FilterQuery

public FilterQuery(int count,
                   long[] follow,
                   java.lang.String[] track)
Creates a new FilterQuery

Parameters:
count - Indicates the number of previous statuses to stream before transitioning to the live stream.
follow - Specifies the users, by ID, to receive public tweets from.
track - Specifies keywords to track.

FilterQuery

public FilterQuery(int count,
                   long[] follow,
                   java.lang.String[] track,
                   double[][] locations)
Creates a new FilterQuery

Parameters:
count - Indicates the number of previous statuses to stream before transitioning to the live stream.
follow - Specifies the users, by ID, to receive public tweets from.
track - Specifies keywords to track.
locations - Specifies the locations to track. 2D array
Method Detail

count

public FilterQuery count(int count)
Sets count

Parameters:
count - Indicates the number of previous statuses to stream before transitioning to the live stream.
Returns:
this instance

follow

public FilterQuery follow(long[] follow)
Sets follow

Parameters:
follow - Specifies the users, by ID, to receive public tweets from.
Returns:
this instance

track

public FilterQuery track(java.lang.String[] track)
Sets track

Parameters:
track - Specifies keywords to track.
Returns:
this instance

locations

public FilterQuery locations(double[][] locations)
Sets locations

Parameters:
locations - Specifies the locations to track. 2D array
Returns:
this instance

setIncludeEntities

public FilterQuery setIncludeEntities(boolean include)
Set whether to include extracted entities in the stream.

Parameters:
include - True if entities should be included, else false.
Returns:
this instance
Since:
Twitter4J 2.1.4

asHttpParameterArray

twitter4j.internal.http.HttpParameter[] asHttpParameterArray()

toLocationsString

private java.lang.String toLocationsString(double[][] keywords)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object