valueOf

inline fun <T : Enum<T>, IntegerEnum> valueOf(value: Int): T

Gets enum of type T where the enums' value matches value. The enum must implement IntegerEnum

Return

Parameters

T
value

inline fun <T : Enum<T>, StringEnum> valueOf(value: String): T

Gets enum of type T where the enums' value matches value. The enum must implement StringEnum

Return

Parameters

T
value