@Beta
public interface VdmEnum
Modifier and Type | Method and Description |
---|---|
static <T extends VdmEnum> |
getConstant(Class<T> enumType,
String identifier)
Helper function to resolve enum constant from given type reference and String identifier.
|
default String |
getName()
Get the name property of the Edm.Enum literal
|
default Long |
getValue()
Get the value property of the Edm.Enum literal
|
@Nonnull default String getName()
@Nullable default Long getValue()
@Nullable static <T extends VdmEnum> T getConstant(@Nonnull Class<T> enumType, @Nullable String identifier)
T
- The generic enum type.enumType
- The enum type reference.identifier
- The enum constant identifier.Copyright © 2020 SAP SE. All rights reserved.