Package org.eclipse.aether.util.version
Class GenericQualifiers
java.lang.Object
org.eclipse.aether.util.version.GenericQualifiers
The recognized generic version qualifiers. Qualifiers may apply a "shift" to versions (ie when sorting), if present.
- Since:
- 2.0.17
-
Field Details
-
LABEL_ALPHA
- See Also:
-
LABEL_BETA
- See Also:
-
LABEL_MILESTONE
- See Also:
-
QUALIFIER_ALPHA
-
QUALIFIER_BETA
-
QUALIFIER_MILESTONE
-
QUALIFIER_RC
-
QUALIFIER_SNAPSHOT
-
QUALIFIER_ZERO
-
QUALIFIER_SP
-
-
Method Details
-
qualifier
Returns qualifier (anIntegerfor given string, if detected. Qualifier, if present, defines "shift", if negative, it is a "preview version" (e.g. alpha, beta, milestone, release candidate or snapshot), if zero, it is a "final version" (e.g. ga, final, release), if positive, it is a "service pack" version (e.g. sp). If no qualifier is detected, an empty optional is returned.- Parameters:
token- the string to analyze for qualifier, must not benull
-