public class DownloadCity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
addOrder |
java.util.ArrayList<DownloadCity> |
childList
省份下的城市列表
|
CityInfo |
cityInfo
下载城市信息
|
static |
CREATOR |
int |
downloadedSize
已下载大小
|
boolean |
isStatsed
是否被统计过
|
static float |
PERCENT_COMPLETE
地图引擎统计已经下载的地图数据信息有误差,这里约定大于或等于98%为已经下载完成状态
|
int |
state
当前状态
|
static int |
STATE_CAN_BE_UPGRADE |
static int |
STATE_COMPLETED |
static int |
STATE_DOWNLOADING |
static int |
STATE_STOPPED |
static int |
STATE_WAITING |
int |
totalSize
总大小
|
Constructor and Description |
---|
DownloadCity(CityInfo cityInfo) |
DownloadCity(CityInfo cityInfo,
int state) |
Modifier and Type | Method and Description |
---|---|
DownloadCity |
clone() |
int |
describeContents() |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getDownloadPercent()
以文本形式描述已下载大小所占的百分比
|
float |
getPercent()
已下载大小所占比率
|
java.lang.String |
getTotalSizeTip()
以文本形式描述总大小
|
int |
hashCode() |
boolean |
isInDownloadCityList(Context context) |
void |
writeToParcel(Parcel parcel,
int flags) |
public java.util.ArrayList<DownloadCity> childList
public CityInfo cityInfo
public int state
public int totalSize
public int downloadedSize
public boolean isStatsed
public static final float PERCENT_COMPLETE
public int addOrder
public static final int STATE_WAITING
public static final int STATE_DOWNLOADING
public static final int STATE_STOPPED
public static final int STATE_COMPLETED
public static final int STATE_CAN_BE_UPGRADE
public static finalCREATOR
public DownloadCity(CityInfo cityInfo)
public DownloadCity(CityInfo cityInfo, int state)
public java.lang.String getDownloadPercent()
public java.lang.String getTotalSizeTip()
public float getPercent()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int describeContents()
public void writeToParcel(Parcel parcel, int flags)
public DownloadCity clone()
clone
in class java.lang.Object
public boolean isInDownloadCityList(Context context)