IntegerEnumSlotDescriptionEnum

The IntegerEnumSlotDescriptionEnum is an interface that constrains an enumeration used to describe the values that can occur in a particular integer slot or BitField.

It includes the fieldName and fieldOrdinal operations to ensure they are statically available in the actual implementations, which are really intended to be Enums, but neither Java nor Kotlin provide a way to sub-categorize enums.

Author

Mark van Gulik

Inheritors

Properties

Link copied to clipboard
abstract val fieldName: String

Answer the name of this enumeration value.

Link copied to clipboard
abstract val fieldOrdinal: Int

Answer an integer that identifies this enumeration value uniquely within this enumeration subclass (i.e., any enumeration class implementing this interface). These values are allocated sequentially to the enumeration values, starting at zero.