目录

SpeedLimitInfo

Class Info

public class SpeedLimitInfo

限速信息实体类。

Public Constructor Summary

Constructor Names

SpeedLimitInfo(int speedLimitValue, int speedLimitType)

带参数的初始化数据构造方法。

Public Method Summary

Qualifier and Type

Method Name and Description

int

getSpeedLimitType()

获取速度类型。

int

getSpeedLimitValue()

获取限速值

  • 公制单位:km/h
  • 英制单位:mph。

Public Constructors

[h2]SpeedLimitInfo(int speedLimitValue, int speedLimitType)

Constructor

public SpeedLimitInfo(int speedLimitValue, int speedLimitType)

根据传入参数构建一个SpeedLimitInfo实例。

Parameters

Name

Description

speedLimitValue

限速值

  • 公制单位:km/h
  • 英制单位:mph

speedLimitType

限速类型,参见IsaSpeedLimitType。

Public Methods

[h2]getSpeedLimitType

Method

public int getSpeedLimitType()

获取速度类型。

Returns

Type

Description

int

限速类型,参见IsaSpeedLimitType。

[h2]getSpeedLimitValue

Method

public int getSpeedLimitValue()

获取限速值。

Returns

Type

Description

int

限速值

  • 公制单位:km/h
  • 英制单位:mph。