final class TrendsJSONImpl extends TwitterResponseImpl implements Trends, java.io.Serializable
| 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 |
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
TrendsJSONImpl(java.util.Date asOf,
Location location,
java.util.Date trendAt,
Trend[] trends) |
TrendsJSONImpl(HttpResponse res,
Configuration conf) |
TrendsJSONImpl(java.lang.String jsonStr) |
TrendsJSONImpl(java.lang.String jsonStr,
boolean storeJSON) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Trends that) |
(package private) static ResponseList<Trends> |
createTrendsList(HttpResponse res,
boolean storeJSON) |
boolean |
equals(java.lang.Object o) |
private static Location |
extractLocation(JSONObject json,
boolean storeJSON) |
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,
boolean storeJSON) |
private static Trend[] |
jsonArrayToTrendArray(JSONArray array,
boolean storeJSON) |
java.lang.String |
toString() |
getAccessLevel, getRateLimitStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatusprivate static final long serialVersionUID
private java.util.Date asOf
private java.util.Date trendAt
private Trend[] trends
private Location location
TrendsJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionTrendsJSONImpl(java.lang.String jsonStr)
throws TwitterException
TwitterExceptionTrendsJSONImpl(java.lang.String jsonStr,
boolean storeJSON)
throws TwitterException
TwitterExceptionpublic int compareTo(Trends that)
compareTo in interface java.lang.Comparable<Trends>void init(java.lang.String jsonStr,
boolean storeJSON)
throws TwitterException
TwitterExceptionstatic ResponseList<Trends> createTrendsList(HttpResponse res, boolean storeJSON) throws TwitterException
TwitterExceptionprivate static Location extractLocation(JSONObject json, boolean storeJSON) throws TwitterException
TwitterExceptionprivate static Trend[] jsonArrayToTrendArray(JSONArray array, boolean storeJSON) throws JSONException
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