I have an enumeration like this:
object VersionTokens extends Enumeration {
type VersionTokens = Value
val ALL = Value("ALL")
val CURRENT = Value("CURRENT")
}
Is there a way to check if any of the values in the enumeration exists in an array of strings?
pseudo code:
val versions = Array("CURRENT", "SOMETHING ELSE")
if(versions.contains(VersionTokens)) true
else false
// should return true since "CURRENT exists in the enumeration