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  int[] follow
           
private  double[][] locations
           
private  java.lang.String[] track
           
 
Constructor Summary
FilterQuery()
          Creates a new FilterQuery
FilterQuery(int[] follow)
          Creates a new FilterQuery
FilterQuery(int count, int[] follow)
          Creates a new FilterQuery
FilterQuery(int count, int[] follow, java.lang.String[] track)
          Creates a new FilterQuery
FilterQuery(int count, int[] follow, java.lang.String[] track, double[][] locations)
          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(int[] follow)
          Sets follow
 int hashCode()
           
 FilterQuery locations(double[][] locations)
          Sets locations
private  java.lang.String toFollowString(int[] follows)
           
private  java.lang.String toLocationsString(double[][] keywords)
           
 java.lang.String toString()
           
private  java.lang.String toTrackString(java.lang.String[] keywords)
           
 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

count

private int count

follow

private int[] follow

track

private java.lang.String[] track

locations

private double[][] locations
Constructor Detail

FilterQuery

public FilterQuery()
Creates a new FilterQuery


FilterQuery

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

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

FilterQuery

public FilterQuery(int count,
                   int[] 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,
                   int[] 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,
                   int[] 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(int[] 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

asHttpParameterArray

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

toLocationsString

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

toFollowString

private java.lang.String toFollowString(int[] follows)

toTrackString

private java.lang.String toTrackString(java.lang.String[] 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