toVersion

open fun toVersion(value: Any): JavaVersion(source)

Converts the given object into a JavaVersion.

Return

The version, or null if the provided value is null.

Parameters

value

An object whose toString() value is to be converted. May be null.

Throws

when the provided value cannot be converted.