
commonMain.com.bselzer.ktx.value.enumeration.BindableEnum.kt Maven / Gradle / Ivy
package com.bselzer.ktx.value.enumeration
interface BindableEnum where T : Enum {
/**
* Converts the [BindableEnum] to the [T] enumeration.
*/
fun toEnum(): T
/**
* Converts the [BindableEnum] to the [T] enumeration, or null if the conversion is not possible.
*/
fun toEnumOrNull(): T?
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy