public enum SupportedProtocols extends Enum<SupportedProtocols>
| Modifier and Type | Method and Description |
|---|---|
byte |
getCode()
Obtém o código do protocolo.
|
static SupportedProtocols |
valueOf(byte code)
Obtém um protocolo a partir de seu código.
|
static SupportedProtocols |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportedProtocols[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedProtocols V1_1
public static final SupportedProtocols V1_2
public static final SupportedProtocols V1_4
public static SupportedProtocols[] values()
for (SupportedProtocols c : SupportedProtocols.values()) System.out.println(c);
public static SupportedProtocols 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 byte getCode()
public static SupportedProtocols valueOf(byte code)
code - O código.null, caso o código não corresponda a
nenhum protocolo.Copyright © 2019 Tecgraf/PUC-Rio. All rights reserved.