public enum EnumCodecStrategy extends Enum<EnumCodecStrategy>
Enum Constant and Description |
---|
NAME
Use the enum constant name for encoding and decoding.
|
ORDINAL
Use the enum constant ordinal for encoding and decoding.
|
Modifier and Type | Field and Description |
---|---|
static com.holonplatform.core.config.ConfigProperty<EnumCodecStrategy> |
CONFIG_PROPERTY
A configuration property which can be used to declare the enum codec strategy.
|
Modifier and Type | Method and Description |
---|---|
static EnumCodecStrategy |
getDefault()
Return the default
EnumCodecStrategy . |
static EnumCodecStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumCodecStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumCodecStrategy NAME
public static final EnumCodecStrategy ORDINAL
public static final com.holonplatform.core.config.ConfigProperty<EnumCodecStrategy> CONFIG_PROPERTY
It can be used, for example, to declare the enum codec strategy for a Property
, using the property
configuration.
public static EnumCodecStrategy[] values()
for (EnumCodecStrategy c : EnumCodecStrategy.values()) System.out.println(c);
public static EnumCodecStrategy 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 static EnumCodecStrategy getDefault()
EnumCodecStrategy
.NAME
Copyright © 2019 The Holon Platform. All rights reserved.