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, getRateLimitStatus
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAccessLevel, getRateLimitStatus
private 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
TwitterException
TrendsJSONImpl(java.lang.String jsonStr) throws TwitterException
TwitterException
TrendsJSONImpl(java.lang.String jsonStr, boolean storeJSON) throws TwitterException
TwitterException
public int compareTo(Trends that)
compareTo
in interface java.lang.Comparable<Trends>
void init(java.lang.String jsonStr, boolean storeJSON) throws TwitterException
TwitterException
static ResponseList<Trends> createTrendsList(HttpResponse res, boolean storeJSON) throws TwitterException
TwitterException
private static Location extractLocation(JSONObject json, boolean storeJSON) throws TwitterException
TwitterException
private static Trend[] jsonArrayToTrendArray(JSONArray array, boolean storeJSON) throws JSONException
JSONException
public Location getLocation()
getLocation
in interface Trends
public java.util.Date getTrendAt()
getTrendAt
in interface Trends
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object