Java twitter4j Query fields, constructors, methods, implement or subclass

Example usage for Java twitter4j Query fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for twitter4j Query.

The text is from its open source code.

Field

Stringlang
intcount
Stringsince
Stringuntil
UnitMILES
UnitKILOMETERS
ResultTypeMIXED
mixed: Include both popular and real time results in the response.
ResultTypePOPULAR
popular: return only the most popular results in the response.
ResultTypeRECENT
recent: return only the most recent results in the response

Constructor

Method

intgetCount()
Returns the number of tweets to return per page, up to a max of 100
longgetMaxId()
Returns tweets with status ids less than the given id.
StringgetQuery()
Returns the specified query
longgetSinceId()
returns sinceId
voidsetCount(int count)
sets the number of tweets to return per page, up to a max of 100
voidsetGeoCode(GeoLocation location, double radius, Unit unit)
returns tweets by users located within a given radius of the given latitude/longitude, where the user's location is taken from their Twitter profile
voidsetLang(String lang)
restricts tweets to the given language, given by an ISO 639-1 code
voidsetLocale(String locale)
Specify the language of the query you are sending (only ja is currently effective).
voidsetMaxId(long maxId)
If specified, returns tweets with status ids less than the given id.
voidsetQuery(String query)
Sets the query string
voidsetResultType(ResultType resultType)
Default value is Query.MIXED if parameter not specified
voidsetSince(String since)
If specified, returns tweets with since the given date.
voidsetSinceId(long sinceId)
returns tweets with status ids greater than the given id.
voidsetUntil(String until)
If specified, returns tweets with generated before the given date.