public static enum Version.Format extends Enum<Version.Format>
Enum Constant and Description |
---|
V1
Original version format, i.e.
|
V2
SemVer-compliant format, i.e.
|
Modifier and Type | Method and Description |
---|---|
static Version.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Version.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Version.Format V1
Major.Minor.Patch.Qualifier
using
BUILD-SNAPSHOT
as the qualifier for snapshots and RELEASE
for
GAs.public static final Version.Format V2
Major.Minor.Patch-Qualifier
using
SNAPSHOT
as the qualifier for snapshots and no qualifier for GAs.public static Version.Format[] values()
for (Version.Format c : Version.Format.values()) System.out.println(c);
public static Version.Format 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 nullCopyright © 2022 Pivotal Software, Inc.. All rights reserved.