Class TestVersionScheme
java.lang.Object
org.eclipse.aether.internal.test.util.TestVersionScheme
- All Implemented Interfaces:
VersionScheme
A version scheme using a generic version syntax.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
parseVersion
(String version) Parses the specified version string, for example "1.0".parseVersionConstraint
(String constraint) Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0),(2.0,)".parseVersionRange
(String range) Parses the specified version range specification, for example "[1.0,2.0)".
-
Constructor Details
-
TestVersionScheme
TestVersionScheme()
-
-
Method Details
-
parseVersion
Description copied from interface:VersionScheme
Parses the specified version string, for example "1.0".- Specified by:
parseVersion
in interfaceVersionScheme
- Parameters:
version
- The version string to parse, must not benull
.- Returns:
- The parsed version, never
null
.
-
parseVersionRange
Description copied from interface:VersionScheme
Parses the specified version range specification, for example "[1.0,2.0)".- Specified by:
parseVersionRange
in interfaceVersionScheme
- Parameters:
range
- The range specification to parse, must not benull
.- Returns:
- The parsed version range, never
null
. - Throws:
InvalidVersionSpecificationException
- If the range specification violates the syntax rules of this scheme.
-
parseVersionConstraint
public VersionConstraint parseVersionConstraint(String constraint) throws InvalidVersionSpecificationException Description copied from interface:VersionScheme
Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0),(2.0,)".- Specified by:
parseVersionConstraint
in interfaceVersionScheme
- Parameters:
constraint
- The constraint specification to parse, must not benull
.- Returns:
- The parsed version constraint, never
null
. - Throws:
InvalidVersionSpecificationException
- If the constraint specification violates the syntax rules of this scheme.
-
equals
-
hashCode
public int hashCode()
-