sdk-traffic / com.tomtom.online.sdk.traffic.incidents.response / IncidentMagnitude / fromInt

fromInt

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

Static method used to search trough enum and retrieve incident magnitude based on passed value. If the value is valid then proper IncidentMagnitude is returned, otherwise IllegalArgumentException is thrown.

Parameters

Value - passed that is going to be searched in enum.