Hello I have the following enumeration and I want to get the values out of the enumeration defined : So here my enumeration object
object ConfType extends Enumeration {
type ConfType = Value
val Dfered = Value("Dfered")
val Dedeo = Value("Dedeo")
}
I want to define a new variable which has the value equal to the String
"Dfered"
I tried this :
val confName: ConfType.Value ="Dfered"
. But I am getting an error. Do you have any idea how to resolce this. Thanks a lot.