EnumDelegateProvider

class EnumDelegateProvider<E : Enum<E>>(name: String?, toEnum: (String) -> E?, toString: (E) -> String = { it.toString() }) : NamedValuePropertyProvider<List<E>?> (source)

Constructors

Link copied to clipboard
constructor(name: String?, toEnum: (String) -> E?, toString: (E) -> String = { it.toString() })

Functions

Link copied to clipboard
open operator override fun provideDelegate(thisRef: StringValuesBuilder, property: KProperty<*>): NamedValueProperty<List<E>?>

Inherited functions

Link copied to clipboard

Specifies that this query parameter should only take a single value.

Link copied to clipboard

Adds a default value to the specified delegate. If the string-value has not been set before, defaultValue is returned instead of null.