parameterToEnumArray

fun <E : Enum<*>> Annotations.Annotation.parameterToEnumArray(paramName: String, valueOf: (String) -> E): List<E>

Converts the parameter of an annotation to a list of enums of type E using the provided valueOf function.

Return

a list of enums of type E corresponding to the parameter value

Parameters

paramName

the name of the parameter in the annotation

valueOf

a function that converts an enum name to an enum of type E

See also