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
TwitterException
TrendsJSONImpl(java.lang.String jsonStr) throws TwitterException
TwitterException
public int compareTo(Trends that)
compareTo
in interface java.lang.Comparable<Trends>
void init(java.lang.String jsonStr) throws TwitterException
TwitterException
static java.util.List<Trends> createTrendsList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
private static Location extractLocation(twitter4j.internal.org.json.JSONObject json) 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