Builder

class Builder

Builder class for creating MaxSpeed instances.

Parameters

speed

Number indicating the posted speed limit.

unit

String indicating the unit of speed, either as km/h or mph.

unknown

Boolean is true if the speed limit is not known, otherwise null.

none

Boolean is true if the speed limit is unlimited, otherwise null.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds a MaxSpeed instance with the current builder values.

Link copied to clipboard

Sets the none status.

Link copied to clipboard

Sets the speed.

Link copied to clipboard

Sets the unit.

Link copied to clipboard

Sets the unknown status.