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
TwitterException
public int compareTo(Trends that)
compareTo
in interface java.lang.Comparable<Trends>
static java.util.List<Trends> createTrendsList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
private static Location extractLocation(twitter4j.internal.org.json.JSONObject json, twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
static Trends createTrends(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
static Trends createTrends(twitter4j.internal.org.json.JSONObject json, twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
private static java.util.Date parseTrendsDate(java.lang.String asOfStr) throws TwitterException
TwitterException
private static Trend[] jsonArrayToTrendArray(twitter4j.internal.org.json.JSONArray array) throws twitter4j.internal.org.json.JSONException
twitter4j.internal.org.json.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