EnumUtils

object EnumUtils

Functions

Link copied to clipboard
inline fun <T : Enum<T>> enumContains(name: String, ignoreCase: Boolean): Boolean

Returns true if enum T contains an entry with the specified name.

Link copied to clipboard
fun formatted(enum: Enum<*>, separator: String = " ", capitalize: Boolean = true): String
Link copied to clipboard
inline fun <T : Enum<T>> getByName(name: String?): T?

Attempts to get the enum by this name.