final class TestVersionScheme extends java.lang.Object implements VersionScheme
| Constructor and Description |
|---|
TestVersionScheme() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
Version |
parseVersion(java.lang.String version)
Parses the specified version string, for example "1.0".
|
VersionConstraint |
parseVersionConstraint(java.lang.String constraint)
Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0),(2.0,)".
|
VersionRange |
parseVersionRange(java.lang.String range)
Parses the specified version range specification, for example "[1.0,2.0)".
|
public Version parseVersion(java.lang.String version) throws InvalidVersionSpecificationException
VersionSchemeparseVersion in interface VersionSchemeversion - The version string to parse, must not be null.null.InvalidVersionSpecificationException - If the string violates the syntax rules of this scheme.public VersionRange parseVersionRange(java.lang.String range) throws InvalidVersionSpecificationException
VersionSchemeparseVersionRange in interface VersionSchemerange - The range specification to parse, must not be null.null.InvalidVersionSpecificationException - If the range specification violates the syntax rules of this scheme.public VersionConstraint parseVersionConstraint(java.lang.String constraint) throws InvalidVersionSpecificationException
VersionSchemeparseVersionConstraint in interface VersionSchemeconstraint - The constraint specification to parse, must not be null.null.InvalidVersionSpecificationException - If the constraint specification violates the syntax rules of this
scheme.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object