/** * Parse a version range.. * * @param s * @return VersionRange object. * @throws IllegalArgumentException * if the String could not be parsed as a VersionRange */ public static VersionRange parseVersionRange(String s) throws IllegalArgumentException { return new VersionRange(s); }
/** * Parse a version range.. * * @param s * @return VersionRange object. * @throws IllegalArgumentException if the String could not be parsed as a VersionRange */ public static VersionRange parseVersionRange(String s) throws IllegalArgumentException{ return new VersionRange(s); }
/** * Parse a version range and indicate if the version is an exact version * * @param s * @param exactVersion * @return VersionRange object. * @throws IllegalArgumentException if the String could not be parsed as a VersionRange */ public static VersionRange parseVersionRange(String s, boolean exactVersion) throws IllegalArgumentException{ return new VersionRange(s, exactVersion); }
/** * Parse a version range and indicate if the version is an exact version * * @param s * @param exactVersion * @return VersionRange object. * @throws IllegalArgumentException * if the String could not be parsed as a VersionRange */ public static VersionRange parseVersionRange(String s, boolean exactVersion) throws IllegalArgumentException { return new VersionRange(s, exactVersion); } }
if (isRangeValid(newMinimumVersion, newMinimumExclusive, newMaximumVersion, newMaximumExclusive)) { result = new VersionRange(newMaximumVersion, newMaximumExclusive, newMinimumVersion, newMinimumExclusive); } else {