public static boolean isValidVersion(String version) {
        return version != null && !version.isEmpty() && parse(version, true) != null;
    }
public static boolean isValidVersion ( String version ) { return version != null && ! version . isEmpty ( ) && parse ( version , true ) != null ; }
Tries to parse the given String as a semantic version and returns whether the
String is properly formatted according to the semantic version specification.

<p>
Note: this method does not throw an exception upon <code>null</code> input, but
returns <code>false</code> instead.


@param version The String to check.
@return Whether the given String is formatted as a semantic version.
@since 0.5.0