| Modifier and Type | Field and Description |
|---|---|
private java.util.Date |
asOf |
private Location |
location |
private static long |
serialVersionUID |
private java.util.Date |
trendAt |
private Trend[] |
trends |
| Constructor and Description |
|---|
TrendsJSONImpl(java.util.Date asOf,
Location location,
java.util.Date trendAt,
Trend[] trends) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Trends that) |
(package private) static Trends |
createTrends(twitter4j.internal.http.HttpResponse res) |
(package private) static Trends |
createTrends(twitter4j.internal.org.json.JSONObject json,
twitter4j.internal.http.HttpResponse res) |
(package private) static java.util.List<Trends> |
createTrendsList(twitter4j.internal.http.HttpResponse res) |
boolean |
equals(java.lang.Object o) |
private static Location |
extractLocation(twitter4j.internal.org.json.JSONObject json,
twitter4j.internal.http.HttpResponse res) |
java.util.Date |
getAsOf() |
Location |
getLocation()
Returns the location associated with the trends.
This method is effective only with getLocalTrends() method. i.e. |
java.util.Date |
getTrendAt() |
Trend[] |
getTrends() |
int |
hashCode() |
private static Trend[] |
jsonArrayToTrendArray(twitter4j.internal.org.json.JSONArray array) |
private static java.util.Date |
parseTrendsDate(java.lang.String asOfStr) |
java.lang.String |
toString() |
private java.util.Date asOf
private java.util.Date trendAt
private Trend[] trends
private Location location
private static final long serialVersionUID
TrendsJSONImpl(java.util.Date asOf,
Location location,
java.util.Date trendAt,
Trend[] trends)
throws TwitterException
TwitterExceptionpublic int compareTo(Trends that)
compareTo in interface java.lang.Comparable<Trends>static java.util.List<Trends> createTrendsList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterExceptionprivate static Location extractLocation(twitter4j.internal.org.json.JSONObject json, twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterExceptionstatic Trends createTrends(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterExceptionstatic Trends createTrends(twitter4j.internal.org.json.JSONObject json, twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterExceptionprivate static java.util.Date parseTrendsDate(java.lang.String asOfStr)
throws TwitterException
TwitterExceptionprivate static Trend[] jsonArrayToTrendArray(twitter4j.internal.org.json.JSONArray array) throws twitter4j.internal.org.json.JSONException
twitter4j.internal.org.json.JSONExceptionpublic Location getLocation()
getLocation in interface Trendspublic java.util.Date getTrendAt()
getTrendAt in interface Trendspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object