Mileage


@CarProtocol
@RequiresCarApi(value = 3)
public final class Mileage


Information about car mileage.

Summary

Nested types

public final class Mileage.Builder

A builder of Mileage.

Public methods

boolean
@NonNull CarValue<Integer>

Returns the distance display unit from the car hardware.

@NonNull CarValue<Float>

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

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getDistanceDisplayUnit

Added in 1.1.0
public @NonNull CarValue<IntegergetDistanceDisplayUnit()

Returns the distance display unit from the car hardware.

See CarUnit for possible distance values.

getOdometerMeters

Added in 1.1.0
public @NonNull CarValue<FloatgetOdometerMeters()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()