Package org.eclipse.aether.util.version
Class GenericQualifiers
- java.lang.Object
-
- org.eclipse.aether.util.version.GenericQualifiers
-
public final class GenericQualifiers extends java.lang.Object
The recognized generic version qualifiers. Qualifiers may apply a "shift" to versions (ie when sorting), if present.- Since:
- 2.0.17
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLABEL_ALPHAstatic java.lang.StringLABEL_BETAstatic java.lang.StringLABEL_MILESTONEstatic java.lang.IntegerQUALIFIER_ALPHAstatic java.lang.IntegerQUALIFIER_BETAstatic java.lang.IntegerQUALIFIER_MILESTONEstatic java.lang.IntegerQUALIFIER_RCstatic java.lang.IntegerQUALIFIER_SNAPSHOTstatic java.lang.IntegerQUALIFIER_SPstatic java.lang.IntegerQUALIFIER_ZERO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<java.lang.Integer>qualifier(java.lang.String token)Returns qualifier (anIntegerfor given string, if detected.
-
-
-
Field Detail
-
LABEL_ALPHA
public static final java.lang.String LABEL_ALPHA
- See Also:
- Constant Field Values
-
LABEL_BETA
public static final java.lang.String LABEL_BETA
- See Also:
- Constant Field Values
-
LABEL_MILESTONE
public static final java.lang.String LABEL_MILESTONE
- See Also:
- Constant Field Values
-
QUALIFIER_ALPHA
public static final java.lang.Integer QUALIFIER_ALPHA
-
QUALIFIER_BETA
public static final java.lang.Integer QUALIFIER_BETA
-
QUALIFIER_MILESTONE
public static final java.lang.Integer QUALIFIER_MILESTONE
-
QUALIFIER_RC
public static final java.lang.Integer QUALIFIER_RC
-
QUALIFIER_SNAPSHOT
public static final java.lang.Integer QUALIFIER_SNAPSHOT
-
QUALIFIER_ZERO
public static final java.lang.Integer QUALIFIER_ZERO
-
QUALIFIER_SP
public static final java.lang.Integer QUALIFIER_SP
-
-
Method Detail
-
qualifier
public static java.util.Optional<java.lang.Integer> qualifier(java.lang.String token)
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
-
-