fromValue

open fun fromValue(v: String): Unit

Gets the enum associated to the value passed as parameter.

Return

Theenum which corresponds to the value, if it exists.

Parameters

v

The value to get the enum from.

Throws

If no value matches in the enum declaration.