| 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) |
TrendsJSONImpl(twitter4j.internal.http.HttpResponse res) |
TrendsJSONImpl(java.lang.String jsonStr) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Trends that) |
(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) |
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() |
(package private) void |
init(java.lang.String jsonStr) |
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(twitter4j.internal.http.HttpResponse res)
throws TwitterException
TwitterExceptionTrendsJSONImpl(java.lang.String jsonStr)
throws TwitterException
TwitterExceptionTrendsJSONImpl(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>void init(java.lang.String jsonStr)
throws TwitterException
TwitterExceptionstatic java.util.List<Trends> createTrendsList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterExceptionprivate static Location extractLocation(twitter4j.internal.org.json.JSONObject json) 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