Mileage.Builder


class Mileage.Builder


A builder of Mileage.

Summary

Public constructors

Public functions

Mileage

Constructs the Mileage defined by this builder.

Mileage.Builder
setDistanceDisplayUnit(mileageDisplayUnit: CarValue<Int!>)

Sets the mileage display unit.

Mileage.Builder
setOdometerMeters(odometerMeters: CarValue<Float!>)

Sets the odometer value in meters.

Public constructors

Builder

Added in 1.1.0
Builder()

Public functions

build

Added in 1.1.0
fun build(): Mileage

Constructs the Mileage defined by this builder.

setDistanceDisplayUnit

Added in 1.1.0
fun setDistanceDisplayUnit(mileageDisplayUnit: CarValue<Int!>): Mileage.Builder

Sets the mileage display unit.

Valid values are in CarUnit.

Throws
java.lang.NullPointerException

if mileageDisplayUnit is null

setOdometerMeters

Added in 1.1.0
fun setOdometerMeters(odometerMeters: CarValue<Float!>): Mileage.Builder

Sets the odometer value in meters.

Throws
java.lang.NullPointerException

if odometer is null