|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttwitter4j.GeoLocation
public class GeoLocation
A data class representing geo location.
| Field Summary | |
|---|---|
protected double |
latitude
|
protected double |
longitude
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
GeoLocation(double latitude,
double longitude)
Creates a GeoLocation instance |
|
| Method Summary | |
|---|---|
(package private) static GeoLocation[][] |
coordinatesAsGeoLocationArray(twitter4j.internal.org.json.JSONArray coordinates)
|
boolean |
equals(java.lang.Object o)
|
(package private) static GeoLocation |
getInstance(twitter4j.internal.org.json.JSONObject json)
returns a GeoLocation instance if a "geo" element is found. |
double |
getLatitude()
returns the latitude of the geo location |
double |
getLongitude()
returns the longitude of the geo location |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double latitude
protected double longitude
private static final long serialVersionUID
| Constructor Detail |
|---|
public GeoLocation(double latitude,
double longitude)
latitude - the latitudelongitude - the longitude| Method Detail |
|---|
static GeoLocation getInstance(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
json - JSONObject to be parsed
TwitterException - when coordinates is not included in geo element (should be an API side issue)
static GeoLocation[][] coordinatesAsGeoLocationArray(twitter4j.internal.org.json.JSONArray coordinates)
throws TwitterException
TwitterExceptionpublic double getLatitude()
public double getLongitude()
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||