twitter4j
Class FilterQuery

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

public final class FilterQuery
extends Object
implements Serializable

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

Constructor Summary
FilterQuery()
          Creates a new FilterQuery
FilterQuery(int count, long[] follow)
          Creates a new FilterQuery
FilterQuery(int count, long[] follow, String[] track)
          Creates a new FilterQuery
FilterQuery(int count, long[] follow, String[] track, double[][] locations)
          Creates a new FilterQuery
FilterQuery(long[] follow)
          Creates a new FilterQuery
 
Method Summary
 FilterQuery count(int count)
          Sets count
 boolean equals(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.
 String toString()
           
 FilterQuery track(String[] track)
          Sets track
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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,
                   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,
                   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(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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.