EnumFromValue
Abstract class for enum wrappers that wrap over primitive enum values. The companion object of the enum wrapper should implement this abstract class.
fromValueOrNull should be implemented to indicate how the given value should be parsed to its enum entry equivalent.
Since
0.0.1
Parameters
default
The default value to be used for fromValue.
Type Parameters
InternalValue
The internal value representation of the enum.
E
The enum.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks if an enum entry with the given value exists.
Link copied to clipboard
Gets the E representation of value, or throws an IllegalArgumentException if no such representation exists.