public enum KnownVersionScheme extends Enum<KnownVersionScheme> implements VersionScheme
Enum Constant and Description |
---|
ALPHANUMERIC
an alpha-numeric string, that can be sorted based on alpha-numeric order.
|
DECIMAL
A decimal number (e.g., 1.25 is less than 1.3 ).
|
MULTIPART_NUMERIC
Numbers separated by dots, where the numbers are interpreted as integers (e.g., 1.2.3, 1.4.5.6,
1.2.3.4.5.6.7).
|
MULTIPART_NUMERIC_WITH_SUFFIX
Numbers separated by dots, where the numbers are interpreted as integers with an additional
string suffix: (e.g., 1.2.3a).
|
SEMVER
Follows the Semantic Versioning specificatio.
|
byIndexMap, byValueMap
Modifier and Type | Method and Description |
---|---|
Integer |
getIndex()
Get the integer index value for the version scheme.
|
String |
getName()
Get the human-readable text value for the version scheme.
|
static KnownVersionScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KnownVersionScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
assignPrivateVersionScheme, init, lookupByIndex, lookupByName
public static final KnownVersionScheme MULTIPART_NUMERIC
public static final KnownVersionScheme MULTIPART_NUMERIC_WITH_SUFFIX
public static final KnownVersionScheme ALPHANUMERIC
public static final KnownVersionScheme DECIMAL
public static final KnownVersionScheme SEMVER
public static KnownVersionScheme[] values()
for (KnownVersionScheme c : KnownVersionScheme.values()) System.out.println(c);
public static KnownVersionScheme valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Integer getIndex()
getIndex
in interface VersionScheme
public String getName()
getName
in interface VersionScheme
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.