public class BusLineItem
extends java.lang.Object
implements android.os.Parcelable
| 限定符和类型 | 字段和说明 |
|---|---|
static android.os.Parcelable.Creator<BusLineItem> |
CREATOR |
| 构造器和说明 |
|---|
BusLineItem()
BusLineItem的构造方法
Constructor of BusLineItem. |
BusLineItem(android.os.Parcel source) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj)
比较两个公交线路ID是否相同
Compare whether two bus route IDs are the same. |
float |
getBasicPrice()
返回公交线路的起步价,单位元
Return the starting fare of the bus route, in yuan. |
java.util.List<LatLonPoint> |
getBounds()
返回公交线路外包矩形的左下与右上顶点坐标
Returns the coordinates of the bottom-left and top-right vertices of the bounding rectangle of the bus line. |
java.lang.String |
getBusCompany()
返回公交线路所属的公交公司
Return the bus company to which the bus route belongs. |
java.lang.String |
getBusLineId()
返回公交线路的唯一ID
Returns the unique ID of the bus line. |
java.lang.String |
getBusLineName()
返回公交线路的名称,包含线路编号和文字名称、类型、首发站、终点站
Returns the name of the bus line, including line number, text name, type, starting station, and terminal station. |
java.lang.String |
getBusLineType()
返回公交线路的类型,类型为中文名称
Returns the type of the bus line, in Chinese name. |
java.util.List<BusStationItem> |
getBusStations()
返回公交线路的站点列表
Return the list of bus stops for the bus route. |
java.lang.String |
getCityCode()
返回公交线路的城市编码。
|
java.util.List<LatLonPoint> |
getDirectionsCoordinates()
返回公交线路的沿途坐标,包含首发站和终点站坐标
Returns the coordinates along the bus line, including the starting and terminal station coordinates. |
float |
getDistance()
返回公交线路全程里程,单位千米
Returns the total mileage of the bus line in kilometers. |
java.util.Date |
getFirstBusTime()
返回公交线路的首班车时间
Returns the first bus time of the bus line. |
java.util.Date |
getLastBusTime()
返回公交线路的末班车时间
Return the last bus time of the bus route. |
java.lang.String |
getOriginatingStation()
返回公交线路的始发站名称
Returns the name of the starting station of the bus line. |
java.lang.String |
getTerminalStation()
返回公交线路的终点站名称
Returns the name of the terminal station of the bus line. |
float |
getTotalPrice()
返回公交线路的全程票价,单位元
Return the full fare of the bus route, in yuan. |
int |
hashCode() |
void |
setBasicPrice(float basicPrice)
设置公交线路的起步价,单位元
Set the starting fare of the bus route, in yuan. |
void |
setBounds(java.util.List<LatLonPoint> bounds)
设置公交线路外包矩形的左下与右上顶点坐标
Sets the coordinates of the bottom-left and top-right vertices of the bounding rectangle of the bus line. |
void |
setBusCompany(java.lang.String busCompany)
设置公交线路所属的公交公司
Set the bus company to which the bus route belongs. |
void |
setBusLineId(java.lang.String busLineId)
设置公交线路的唯一ID
Sets the unique ID of the bus line. |
void |
setBusLineName(java.lang.String busLineName)
设置公交线路的名称
Sets the name of the bus line. |
void |
setBusLineType(java.lang.String busLineType)
设置公交线路的类型
Sets the type of the bus line. |
void |
setBusStations(java.util.List<BusStationItem> busStations)
设置公交线路的站点列表
Set the list of bus stops for the bus route. |
void |
setCityCode(java.lang.String cityCode)
设置公交线路的城市编码。
|
void |
setDirectionsCoordinates(java.util.List<LatLonPoint> directionsCoordinates)
设置公交线路的沿途坐标,包含首发站和终点站坐标
Sets the coordinates along the bus line, including the starting and terminal station coordinates. |
void |
setDistance(float distance)
设置公交线路全程里程,单位千米
Sets the total mileage of the bus line in kilometers. |
void |
setFirstBusTime(java.util.Date firstBusTime)
设置公交线路的首班车时间
Sets the first bus time of the bus line. |
void |
setLastBusTime(java.util.Date lastBusTime)
设置公交线路的末班车时间
Set the last bus time of the bus route. |
void |
setOriginatingStation(java.lang.String originatingStation)
设置公交线路的始发站名称
Sets the name of the starting station of the bus line. |
void |
setTerminalStation(java.lang.String terminalStation)
设置公交线路的终点站名称
Sets the name of the terminal station of the bus line. |
void |
setTotalPrice(float totalPrice)
设置公交线路的全程票价,单位元
Set the full fare of the bus route, in yuan. |
java.lang.String |
toString()
将公交线路信息转换为字符串输出
Convert bus route information to a string output. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<BusLineItem> CREATOR
public BusLineItem()
public BusLineItem(android.os.Parcel source)
public float getDistance()
public void setDistance(float distance)
distance - 公交线路全程里程数。
public java.lang.String getBusLineName()
public void setBusLineName(java.lang.String busLineName)
busLineName - 公交线路的名称。
public java.lang.String getBusLineType()
public void setBusLineType(java.lang.String busLineType)
busLineType - 公交线路的类型。
public java.lang.String getCityCode()
public void setCityCode(java.lang.String cityCode)
cityCode - 公交线路的城市编码。
public java.util.List<LatLonPoint> getDirectionsCoordinates()
public void setDirectionsCoordinates(java.util.List<LatLonPoint> directionsCoordinates)
directionsCoordinates - 公交线路的沿途坐标。
public java.util.List<LatLonPoint> getBounds()
public void setBounds(java.util.List<LatLonPoint> bounds)
bounds - 公交线路外包矩形的左下右上顶点坐标。
public java.lang.String getBusLineId()
public void setBusLineId(java.lang.String busLineId)
busLineId - 公交线路的唯一ID。
public java.lang.String getOriginatingStation()
public void setOriginatingStation(java.lang.String originatingStation)
originatingStation - 公交线路的始发站名称。
public java.lang.String getTerminalStation()
public void setTerminalStation(java.lang.String terminalStation)
terminalStation - 公交线路的终点站名称。
public java.util.Date getFirstBusTime()
public void setFirstBusTime(java.util.Date firstBusTime)
firstBusTime - 公交线路的首班车时间。
public java.util.Date getLastBusTime()
public void setLastBusTime(java.util.Date lastBusTime)
lastBusTime - 返回公交线路的末班车时间。
public java.lang.String getBusCompany()
public void setBusCompany(java.lang.String busCompany)
busCompany - 公交线路所属的公交公司。
public float getBasicPrice()
public void setBasicPrice(float basicPrice)
basicPrice - 公交线路的起步价。
public float getTotalPrice()
public void setTotalPrice(float totalPrice)
totalPrice - 公交线路的全程票价。
public java.util.List<BusStationItem> getBusStations()
public void setBusStations(java.util.List<BusStationItem> busStations)
busStations - 公交线路的站点列表。
public boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectobj - 查询条件。
public int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic int describeContents()
describeContents 在接口中 android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.Parcelable