public class DPoint
extends java.lang.Object
implements android.os.Parcelable
| 构造器和说明 |
|---|
DPoint()
构造方法
Constructor |
DPoint(double latitude,
double longitude)
根据经纬度构造坐标点
Construct a coordinate point based on longitude and latitude |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj)
重写equals方法
Override the equals method |
double |
getLatitude()
获取坐标点的纬度
Get the latitude of the coordinate point |
double |
getLongitude()
获取坐标点的经度
Get the longitude of the coordinate point |
int |
hashCode() |
void |
setLatitude(double latitude)
设置坐标点的纬度
Set the latitude of the coordinate point |
void |
setLongitude(double longitude)
设置坐标点的经度
Set the longitude of the coordinate point |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<DPoint> CREATOR
public DPoint()
public DPoint(double latitude,
double longitude)
latitude - 纬度
longitude - 经度
public double getLongitude()
public void setLongitude(double longitude)
longitude - 经度
public double getLatitude()
public void setLatitude(double latitude)
latitude - 纬度
public boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic int describeContents()
describeContents 在接口中 android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.Parcelable