类 MaxSpeed.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.MaxSpeed.Builder
- 封闭类:
- MaxSpeed
This builder can be used to set the values describing the
MaxSpeed.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract MaxSpeedbuild()Build a newMaxSpeedobject.abstract MaxSpeed.BuilderBoolean is `true` if the speed limit is unlimited, otherwise null.abstract MaxSpeed.BuilderNumber indicating the posted speed limit.abstract MaxSpeed.BuilderString indicating the unit of speed, either as `km/h` or `mph`.abstract MaxSpeed.BuilderBoolean is true if the speed limit is not known, otherwise null.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
speed
Number indicating the posted speed limit.- 参数:
speed- indicating the posted speed limit- 返回:
- a
MaxSpeed.Builderobject
-
unit
String indicating the unit of speed, either as `km/h` or `mph`.- 参数:
unit- either as `km/h` or `mph`- 返回:
- a
MaxSpeed.Builderobject
-
unknown
Boolean is true if the speed limit is not known, otherwise null.- 参数:
unknown- true if speed limit is not known, otherwise null- 返回:
- a
MaxSpeed.Builderobject
-
none
Boolean is `true` if the speed limit is unlimited, otherwise null.- 参数:
none- true if speed limit is unlimited, otherwise null- 返回:
- a
MaxSpeed.Builderobject
-
build
Build a newMaxSpeedobject.- 返回:
- a new
MaxSpeedusing the provided values in this builder
-