utilities.safeEnumValueOf.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dokka-core Show documentation
Show all versions of dokka-core Show documentation
Dokka is an API documentation engine for Kotlin and Java, performing the same function as Javadoc for Java
package org.jetbrains.dokka.utilities
inline fun > enumValueOrNull(name: String): T? =
T::class.java.enumConstants.firstOrNull { it.name.toUpperCase() == name.toUpperCase() }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy