@Beta public enum ProtocolVersion extends Enum<ProtocolVersion>
Enum Constant and Description |
---|
V100
following the protocol definition versioned as 1.0.0
|
V110
following the protocol definition versioned as 1.1.0
|
Modifier and Type | Field and Description |
---|---|
String |
version
version Use the latest if you are not sure
|
Modifier and Type | Method and Description |
---|---|
static ProtocolVersion |
fromString(String version) |
String |
toString() |
static ProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolVersion V110
public static final ProtocolVersion V100
public final String version
public static ProtocolVersion[] values()
for (ProtocolVersion c : ProtocolVersion.values()) System.out.println(c);
public static ProtocolVersion 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 null@Nonnull public String toString()
toString
in class Enum<ProtocolVersion>
@Nonnull public static ProtocolVersion fromString(@Nonnull String version)
version
- string representation of the versionCopyright © 2021 SAP SE. All rights reserved.