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)
VersionScheme
parseVersion
in interface VersionScheme
version
- The version string to parse, must not be null
.null
.public VersionRange parseVersionRange(java.lang.String range) throws InvalidVersionSpecificationException
VersionScheme
parseVersionRange
in interface VersionScheme
range
- 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
VersionScheme
parseVersionConstraint
in interface VersionScheme
constraint
- 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.Object
public int hashCode()
hashCode
in class java.lang.Object