Speed.Builder


class Speed.Builder


A builder of Speed.

Summary

Public constructors

Public functions

Speed

Constructs the Speed defined by this builder.

Speed.Builder
setDisplaySpeedMetersPerSecond(
    displaySpeedMetersPerSecond: CarValue<Float!>
)

Sets the display speed in meters per second. *

Speed.Builder
setRawSpeedMetersPerSecond(rawSpeedMetersPerSecond: CarValue<Float!>)

Sets the raw speed in meters per second.

Speed.Builder
setSpeedDisplayUnit(speedDisplayUnit: CarValue<Int!>)

Sets the units used to display speed from the car hardware settings.

Public constructors

Builder

Added in 1.1.0
Builder()

Public functions

build

Added in 1.1.0
fun build(): Speed

Constructs the Speed defined by this builder.

setDisplaySpeedMetersPerSecond

Added in 1.1.0
fun setDisplaySpeedMetersPerSecond(
    displaySpeedMetersPerSecond: CarValue<Float!>
): Speed.Builder

Sets the display speed in meters per second. *

Throws
java.lang.NullPointerException

if displaySpeedMetersPerSecond is null

setRawSpeedMetersPerSecond

Added in 1.1.0
fun setRawSpeedMetersPerSecond(rawSpeedMetersPerSecond: CarValue<Float!>): Speed.Builder

Sets the raw speed in meters per second.

Throws
java.lang.NullPointerException

if rawSpeedMetersPerSecond is null

setSpeedDisplayUnit

Added in 1.1.0
fun setSpeedDisplayUnit(speedDisplayUnit: CarValue<Int!>): Speed.Builder

Sets the units used to display speed from the car hardware settings.

See CarUnit for valid speed units.

Throws
java.lang.NullPointerException

if speedDisplayUnit is null