public enum ProtocolVersion extends Enum<ProtocolVersion> implements ProtocolCode
| Modifier and Type | Field and Description |
|---|---|
private int |
code |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Get Protocol Code as transmitted over a socket connection
|
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 VERSION_1
public static final ProtocolVersion VERSION_2
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 nullpublic int getCode()
ProtocolCodegetCode in interface ProtocolCodeCopyright © 2024 Apache NiFi Project. All rights reserved.