toString

fun <E : Enum<E>?> toString(obj: E?): String?

Returns the name or null.

Return

a string with the name or null.

Parameters

obj

the enum instance

the enum type