|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.test.util.impl.TestVersionScheme
public class TestVersionScheme
A version scheme using a generic version syntax.
Constructor Summary | |
---|---|
TestVersionScheme()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
Version |
parseVersion(String version)
Parses the specified version string, for example "1.0". |
VersionConstraint |
parseVersionConstraint(String constraint)
Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0),(2.0,)". |
VersionRange |
parseVersionRange(String range)
Parses the specified version range specification, for example "[1.0,2.0)". |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestVersionScheme()
Method Detail |
---|
public Version parseVersion(String version) throws InvalidVersionSpecificationException
VersionScheme
parseVersion
in interface VersionScheme
version
- The version string to parse, must not be null
.
null
.
InvalidVersionSpecificationException
- If the string violates the syntax rules of this scheme.public VersionRange parseVersionRange(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(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(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |