@Deprecated public interface DynamicEnum extends net.openhft.chronicle.core.util.CoreDynamicEnum, Marshallable
Enum or a class
possessing a String name field. The interface extends both CoreDynamicEnum and
Marshallable, facilitating serialization and specific dynamic enumeration operations.EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
default void |
reset()
Deprecated.
Not resettable, treat as immutable.
|
static <E extends DynamicEnum> |
updateEnum(E e)
Deprecated.
Refreshes the cached instance of a
DynamicEnum based on the given template. |
$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldstatic <E extends DynamicEnum> void updateEnum(E e)
DynamicEnum based on the given template.
This ensures that every deserialization of the enum value from its name() method
is up-to-date with the most recent information.
Leveraging this method to update the cached enum details is essential for maintaining data consistency, especially during frequent deserialization operations.
e - The DynamicEnum template used to refresh the cached version.default void reset()
reset in interface Marshallablereset in interface net.openhft.chronicle.core.io.ResettableCopyright © 2024. All rights reserved.