public enum EncodingOption extends Enum<EncodingOption>
| Enum Constant and Description |
|---|
No_Encoding |
TTLV_Encoding |
| Modifier and Type | Method and Description |
|---|---|
static EncodingOption |
from(int code) |
static EncodingOption |
from(String name) |
int |
getCode() |
String |
toString() |
static EncodingOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncodingOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodingOption No_Encoding
public static final EncodingOption TTLV_Encoding
public static EncodingOption[] values()
for (EncodingOption c : EncodingOption.values()) System.out.println(c);
public static EncodingOption 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()
public String toString()
toString in class Enum<EncodingOption>public static EncodingOption from(String name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static EncodingOption from(int code) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2022. All rights reserved.