パッケージ twitter4j.v1
クラス Query
java.lang.Object
twitter4j.v1.Query
- すべての実装されたインタフェース:
Serializable
A data class represents search query.
An instance of this class is NOT thread safe.
Instances can be shared across threads, but should not be mutated while a search is ongoing.
An instance of this class is NOT thread safe.
Instances can be shared across threads, but should not be mutated while a search is ongoing.
-
ネストされたクラスの概要
ネストされたクラス -
フィールドの概要
フィールド修飾子とタイプフィールド説明final intcountfinal @Nullable Stringgeocodestatic final Query.Unitkilo metersfinal Stringlangfinal Stringlocalefinal longmaxIdstatic final Query.Unitmilesstatic final Query.ResultTypemixed: Include both popular and real time results in the response.final @Nullable Stringnext page querystatic final Query.ResultTypepopular: return only the most popular results in the response.final @NotNull Stringquerystatic final Query.ResultTyperecent: return only the most recent results in the responsefinal @Nullable Query.ResultTyperesult typefinal @Nullable Stringsincefinal longsinceIdfinal @Nullable Stringuntil -
メソッドの概要
修飾子とタイプメソッド説明@NotNull Querycount(int count) creates a new Query instance with the specified countboolean@NotNull QuerygeoCode(@NotNull GeoLocation location, double radius, Query.Unit unit) creates a new Query instance with the specified geolocationinthashCode()@NotNull Querycreates a new Query instance with the specified lang@NotNull Querycreates a new Query instance with the specified locale@NotNull QuerymaxId(long maxId) creates a new Query instance with the specified maxIdstatic @NotNull Query@NotNull QueryresultType(@NotNull Query.ResultType resultType) creates a new Query instance with the specified result type@NotNull Querycreates a new Query instance with the specified since@NotNull QuerysinceId(long sinceId) creates a new Query instance with the specified sinceIdtoString()@NotNull Querycreates a new Query instance with the specified until
-
フィールド詳細
-
query
query -
lang
lang -
locale
locale -
maxId
public final long maxIdmaxId -
count
public final int countcount -
since
since -
sinceId
public final long sinceIdsinceId -
geocode
geocode -
until
until -
resultType
result type -
nextPageQuery
next page query -
MILES
miles -
KILOMETERS
kilo meters -
MIXED
mixed: Include both popular and real time results in the response. -
POPULAR
popular: return only the most popular results in the response. -
RECENT
recent: return only the most recent results in the response
-
-
メソッドの詳細
-
lang
creates a new Query instance with the specified lang- パラメータ:
lang- lang- 戻り値:
- new Query instance
-
locale
creates a new Query instance with the specified locale- パラメータ:
locale- locale- 戻り値:
- new Query instance
-
maxId
creates a new Query instance with the specified maxId- パラメータ:
maxId- maxId- 戻り値:
- new Query instance
-
count
creates a new Query instance with the specified count- パラメータ:
count- count- 戻り値:
- new Query instance
-
since
creates a new Query instance with the specified since- パラメータ:
since- since- 戻り値:
- new Query instance
-
sinceId
creates a new Query instance with the specified sinceId- パラメータ:
sinceId- sinceId- 戻り値:
- new Query instance
-
geoCode
@NotNull public @NotNull Query geoCode(@NotNull @NotNull GeoLocation location, double radius, Query.Unit unit) creates a new Query instance with the specified geolocation- パラメータ:
location- geolocationradius- radiusunit- unit- 戻り値:
- new Query instance
-
until
creates a new Query instance with the specified until- パラメータ:
until- until- 戻り値:
- new Query instance
-
resultType
creates a new Query instance with the specified result type- パラメータ:
resultType- result type- 戻り値:
- new Query instance
-
of
- パラメータ:
query- query- 戻り値:
- Query
-
equals
-
hashCode
public int hashCode() -
toString
-