|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.version.GenericVersionScheme
public class GenericVersionScheme
A version scheme using a generic version syntax.
| Constructor Summary | |
|---|---|
GenericVersionScheme()
|
|
| Method Summary | |
|---|---|
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)". |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericVersionScheme()
| Method Detail |
|---|
public Version parseVersion(java.lang.String version)
throws InvalidVersionSpecificationException
VersionScheme
parseVersion 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
VersionScheme
parseVersionRange 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
VersionScheme
parseVersionConstraint 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||