EnumValue
interface EnumValue<T : Enum<T>>
EnumValue.Known |
Represents a known enum value. |
EnumValue.Unknown |
Represents an unknown enum value. |
Stores the value of an enum or a string if the string does not correspond to one of the enum's values.
Summary
Nested types |
|---|
class EnumValue.Known<T : Enum<T>> : EnumValueRepresents a known enum value. |
class EnumValue.Unknown : EnumValueRepresents an unknown enum value. |
Public properties |
|
|---|---|
String |
The string value of the enum, either the |
T? |
|
Public properties
stringValue
val stringValue: String
The string value of the enum, either the Enum.name of Known.value in the case of Known or the stringValue given to the constructor in the case of Unknown.