@Beta(2020, 12) class Builder
Builder used to create an instance of VehicleDimensions. Once constructed, the user cannot change the field values.
Builder()
Builder used to create an instance of VehicleDimensions. Once constructed, the user cannot change the field values. |
fun build(): VehicleDimensions
Creates a new instance of the VehicleDimensions. |
|
fun vehicleAxleWeightInKg(vehicleAxleWeightInKg: Int): VehicleDimensions.Builder
Specifies the weight per axle of the vehicle in kg. |
|
fun vehicleHeightInMeters(vehicleHeightInMeters: Double): VehicleDimensions.Builder
Specifies the height of the vehicle in meters. |
|
fun vehicleLengthInMeters(vehicleLengthInMeters: Double): VehicleDimensions.Builder
Specifies the length of the vehicle in meters. |
|
fun vehicleWeightInKg(vehicleWeightInKg: Int): VehicleDimensions.Builder
Specifies the weight of the vehicle in kilograms. |
|
fun vehicleWidthInMeters(vehicleWidthInMeters: Double): VehicleDimensions.Builder
Specifies the width of the vehicle in meters. |