← Back to Stormify Documentation

fromInt

fun <T : Any> fromInt(enumClass: KClass<T>, value: Int): T?

Returns the enum constant of enumClass whose integer value (ordinal or DbValue.dbValue) is value, or null if enumClass is not registered or no matching constant exists.