macrame.play.enums
This trait provides an instance of QueryStringBindable for an enumeration. It works by extending the companion object of the enumeration class.
QueryStringBindable
@enum class Color { Red Blue Yellow } object Color extends QueryStringConverters[Color]
If you need your QueryStringBindable instance to be case-insensitive you can override the caseSensitive member like so:
caseSensitive
@enum class Color { Red Blue Yellow } object Color extends QueryStringConverters[Color] { override val caseSensitive = false }
Indicates whether bind is case sensitive.
bind
This trait provides an instance of
QueryStringBindable
for an enumeration. It works by extending the companion object of the enumeration class.If you need your
QueryStringBindable
instance to be case-insensitive you can override thecaseSensitive
member like so: