fromString

This method is used to convert a String to an DistanceUnit. If the String is not found, the DistanceUnit.UNKNOWN is returned.

Return

DistanceUnit

Parameters

value

String is a string naming.