twitter4j
Class GeoLocation
java.lang.Object
twitter4j.GeoLocation
- All Implemented Interfaces:
- java.io.Serializable
public class GeoLocation
- extends java.lang.Object
- implements java.io.Serializable
A data class representing geo location.
- Author:
- Yusuke Yamamoto - yusuke at mac.com
- See Also:
- Serialized Form
Constructor Summary |
GeoLocation(double latitude,
double longitude)
Creates a GeoLocation instance |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
latitude
protected double latitude
longitude
protected double longitude
GeoLocation
public GeoLocation(double latitude,
double longitude)
- Creates a GeoLocation instance
- Parameters:
latitude
- the latitudelongitude
- the longitude
getLatitude
public double getLatitude()
- returns the latitude of the geo location
- Returns:
- the latitude
getLongitude
public double getLongitude()
- returns the longitude of the geo location
- Returns:
- the longitude
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010. All Rights Reserved.