Mileage

public final class Mileage
extends Object

java.lang.Object
   ↳ androidx.car.app.hardware.info.Mileage


Information about car mileage.

Summary

Nested classes

class Mileage.Builder

A builder of Mileage

Public methods

boolean equals(Object other)
CarValue<Integer> getDistanceDisplayUnit()

Returns the distance display unit from the car hardware.

CarValue<Float> getOdometerMeters()

Returns the value of the odometer from the car hardware in meters.

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getDistanceDisplayUnit

public CarValue<Integer> getDistanceDisplayUnit ()

Returns the distance display unit from the car hardware.

See CarUnit for possible distance values.

Returns
CarValue<Integer>

getOdometerMeters

public CarValue<Float> getOdometerMeters ()

Returns the value of the odometer from the car hardware in meters.

Returns
CarValue<Float>

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String