MappedStringEnumArgumentDescriptor

class MappedStringEnumArgumentDescriptor<T>(val map: Map<String, T>) : ArgumentDescriptor<EnumArgumentType>

ArgumentDescriptor for EnumArgumentType allowing a set of specified strings, and containing values of T matching every allowed string.

Author

Cypher121

Constructors

Link copied to clipboard
fun <T> MappedStringEnumArgumentDescriptor(map: Map<String, T>)

Properties

Link copied to clipboard
val map: Map<String, T>

map of strings allowed by the command to values returned to the command code.