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 |
HEIGHT_INDEX = 0The index for vehicle height in millimeters. |
static final int |
LENGTH_INDEX = 1The 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 |
WHEEL_BASE_INDEX = 4The index for vehicle wheel base in millimeters. |
static final int |
The index for vehicle width including mirrors in millimeters. |
static final int |
WIDTH_INDEX = 2The 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 |
hashCode() |
@NonNull String |
toString() |
Constants
CURB_TO_CURB_TURNING_RADIUS_INDEX
public static final int CURB_TO_CURB_TURNING_RADIUS_INDEX = 7
The index for vehicle curb to curb turning radius in millimeters.
HEIGHT_INDEX
public static final int HEIGHT_INDEX = 0
The index for vehicle height in millimeters.
LENGTH_INDEX
public static final int LENGTH_INDEX = 1
The index for vehicle length in millimeters.
TRACK_WIDTH_FRONT_INDEX
public static final int TRACK_WIDTH_FRONT_INDEX = 5
The index for vehicle front track width in millimeters.
TRACK_WIDTH_REAR_INDEX
public static final int TRACK_WIDTH_REAR_INDEX = 6
The index for vehicle rear track width in millimeters.
WHEEL_BASE_INDEX
public static final int WHEEL_BASE_INDEX = 4
The index for vehicle wheel base in millimeters.
WIDTH_INCLUDING_MIRRORS_INDEX
public static final int WIDTH_INCLUDING_MIRRORS_INDEX = 3
The index for vehicle width including mirrors in millimeters.
WIDTH_INDEX
public static final int WIDTH_INDEX = 2
The index for vehicle width in millimeters.
Public constructors
ExteriorDimensions
public ExteriorDimensions()
Creates a default ExteriorDimensions instance that report "unknown" as the value.
ExteriorDimensions
public ExteriorDimensions(@NonNull CarValue<Integer[]> exteriorDimensions)
Creates an ExteriorDimensions instance with the given car value.
Public methods
getExteriorDimensions
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.