/** * Parses a version identifier from the specified string. * * @param version String representation of the version identifier. Leading * and trailing whitespace will be ignored. * @return A <code>Version</code> object representing the version identifier * or <code>null</code> if <code>version</code> is <code>null</code> or * an empty string. * @throws IllegalArgumentException If <code>version</code> is improperly * formatted. */ public static Version create(String version) { return version == null ? null : VersionParser.parse(version, 0, version.length()); }