sdk-traffic / com.tomtom.online.sdk.traffic.flow.query / FlowSegmentSpeedUnit / fromInt

fromInt

@NonNull static fun fromInt(value: Int): FlowSegmentSpeedUnit

Static method used to search if the passed value is a valid speed unit type and returns FlowSegmentSpeedUnit. If the value passed is invalid, then IllegalArgumentException is thrown.

Parameters

value - Int: An integer to be searched.