fromValue
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.
Gets the enum associated to the value passed as parameter.
Theenum which corresponds to the value, if it exists.
The value to get the enum from.
If no value matches in the enum declaration.