/** * This method should be used to create a version range from a single * version string. * @param version * version for the versioninfo * @param exactVersion * whether this is an exact version {@code true} or goes to infinity * {@code false} */ public VersionRange(String version, boolean exactVersion) { if (exactVersion) { // Do not store this string as it might be just a version, or a range! processExactVersionAttribute(version); } else { this.version = version; processVersionAttribute(this.version); } assertInvariants(); }