This trait provides the numeric/enumeration conversions from IntConverters, ShortConverters, and LongConverters.
As with those traits you must extend the companion object of the enumeration.
@enum class Color {
Red
Blue
Yellow
}
object Color extends NumericConverters[Color]
This trait provides the numeric/enumeration conversions from
IntConverters
,ShortConverters
, andLongConverters
. As with those traits you must extend the companion object of the enumeration.