static fun toVersion(value: Any): TargetJdk
Converts the given object into a TargetJdk
.
value
- An object whose toString() value is to be converted. May be null.
IllegalArgumentException
- when the provided value cannot be converted.
Return
The version, or null if the provided value is null.