createCoercedRangedProperty
Creates an instance of VehicleProperties.RangedProperty by coercing Parcelable into a given range.
If value exceeds maximum range, value is set to ClosedRange.endInclusive. If value is less than minimum range, value is set to ClosedRange.start.
Return
Instance of VehicleProperties.RangedProperty.
Parameters
The type of the value.
Range used when creating the VehicleProperties.RangedProperty instance.
Value used when creating the instance; the value will be coerced by using the provided range.
Property ID or name, only used for logging purposes.
Creates an instance of VehicleProperties.RangedProperty by coercing Serializable into a given range.
If value exceeds maximum range, value is set to ClosedRange.endInclusive. If value is less than minimum range, value is set to ClosedRange.start.
Return
Instance of VehicleProperties.RangedProperty.
Parameters
The type of the value.
Range used when creating the VehicleProperties.RangedProperty instance.
Value used when creating the instance, the value will be coerced by using the provided range.
Property ID or name, only used for logging purposes.