| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract MaxSpeed |
build()
Build a new
MaxSpeed object. |
abstract MaxSpeed.Builder |
none(java.lang.Boolean none)
Boolean is `true` if the speed limit is unlimited, otherwise null.
|
abstract MaxSpeed.Builder |
speed(java.lang.Integer speed)
Number indicating the posted speed limit.
|
abstract MaxSpeed.Builder |
unit(java.lang.String unit)
String indicating the unit of speed, either as `km/h` or `mph`.
|
abstract MaxSpeed.Builder |
unknown(java.lang.Boolean unknown)
Boolean is true if the speed limit is not known, otherwise null.
|
public abstract MaxSpeed.Builder speed(@Nullable java.lang.Integer speed)
speed - indicating the posted speed limitMaxSpeed.Builder objectpublic abstract MaxSpeed.Builder unit(@Nullable java.lang.String unit)
unit - either as `km/h` or `mph`MaxSpeed.Builder objectpublic abstract MaxSpeed.Builder unknown(@Nullable java.lang.Boolean unknown)
unknown - true if speed limit is not known, otherwise nullMaxSpeed.Builder objectpublic abstract MaxSpeed.Builder none(@Nullable java.lang.Boolean none)
none - true if speed limit is unlimited, otherwise nullMaxSpeed.Builder object