public final class

Mileage.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.hardware.info.Mileage.Builder

Overview

A builder of Mileage.

Summary

Constructors
publicBuilder()

Methods
public Mileagebuild()

Constructs the Mileage defined by this builder.

public Mileage.BuildersetDistanceDisplayUnit(CarValue<java.lang.Integer> mileageDisplayUnit)

Sets the mileage display unit.

public Mileage.BuildersetOdometerMeters(CarValue<java.lang.Float> odometerMeters)

Sets the odometer value in meters.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public Mileage.Builder setOdometerMeters(CarValue<java.lang.Float> odometerMeters)

Sets the odometer value in meters.

public Mileage.Builder setDistanceDisplayUnit(CarValue<java.lang.Integer> mileageDisplayUnit)

Sets the mileage display unit.

Valid values are in CarUnit.

public Mileage build()

Constructs the Mileage defined by this builder.