getConstantByName

inline fun <T> getConstantByName(name: String): T?

Return

value of the constant with the given name if found, null otherwise

Parameters

name

name of the constant, case-insensitive

T

class to extract the constant from and the value type