ExteriorDimensions


@CarProtocol
@RequiresCarApi(value = 7)
public class ExteriorDimensions


Information about the vehicle's exterior dimensions reported in millimeters.

Summary

Constants

static final int

The index for vehicle curb to curb turning radius in millimeters.

static final int

The index for vehicle height in millimeters.

static final int

The index for vehicle length in millimeters.

static final int

The index for vehicle front track width in millimeters.

static final int

The index for vehicle rear track width in millimeters.

static final int

The index for vehicle wheel base in millimeters.

static final int

The index for vehicle width including mirrors in millimeters.

static final int

The index for vehicle width in millimeters.

Public constructors

Creates a default ExteriorDimensions instance that report "unknown" as the value.

ExteriorDimensions(@NonNull CarValue<Integer[]> exteriorDimensions)

Creates an ExteriorDimensions instance with the given car value.

Public methods

boolean
@NonNull CarValue<Integer[]>

Returns the vehicle's exterior dimensions in millimeters.

int
@NonNull String

Constants

CURB_TO_CURB_TURNING_RADIUS_INDEX

Added in 1.7.0-beta02
public static final int CURB_TO_CURB_TURNING_RADIUS_INDEX = 7

The index for vehicle curb to curb turning radius in millimeters.

HEIGHT_INDEX

Added in 1.7.0-beta02
public static final int HEIGHT_INDEX = 0

The index for vehicle height in millimeters.

LENGTH_INDEX

Added in 1.7.0-beta02
public static final int LENGTH_INDEX = 1

The index for vehicle length in millimeters.

TRACK_WIDTH_FRONT_INDEX

Added in 1.7.0-beta02
public static final int TRACK_WIDTH_FRONT_INDEX = 5

The index for vehicle front track width in millimeters.

TRACK_WIDTH_REAR_INDEX

Added in 1.7.0-beta02
public static final int TRACK_WIDTH_REAR_INDEX = 6

The index for vehicle rear track width in millimeters.

WHEEL_BASE_INDEX

Added in 1.7.0-beta02
public static final int WHEEL_BASE_INDEX = 4

The index for vehicle wheel base in millimeters.

WIDTH_INCLUDING_MIRRORS_INDEX

Added in 1.7.0-beta02
public static final int WIDTH_INCLUDING_MIRRORS_INDEX = 3

The index for vehicle width including mirrors in millimeters.

WIDTH_INDEX

Added in 1.7.0-beta02
public static final int WIDTH_INDEX = 2

The index for vehicle width in millimeters.

Public constructors

ExteriorDimensions

Added in 1.7.0-beta02
public ExteriorDimensions()

Creates a default ExteriorDimensions instance that report "unknown" as the value.

ExteriorDimensions

Added in 1.7.0-beta02
public ExteriorDimensions(@NonNull CarValue<Integer[]> exteriorDimensions)

Creates an ExteriorDimensions instance with the given car value.

Public methods

equals

public boolean equals(@Nullable Object other)

getExteriorDimensions

Added in 1.7.0-beta02
public @NonNull CarValue<Integer[]> getExteriorDimensions()

Returns the vehicle's exterior dimensions in millimeters. This information is reported as-is from the manufacturer and is keyed off of the indexes defined in this class, as documented in VehiclePropertyIds#INFO_EXTERIOR_DIMENSIONS.

hashCode

public int hashCode()

toString

public @NonNull String toString()