Github user chiwanpark commented on the pull request:
https://github.com/apache/flink/pull/1397#issuecomment-170200015
Hi @rawkintrevo, you can convert scala Enum to Int like following:
```scala
object Parameter extends Enumeration {
type Parameter = Value
val Param1, Param2, Param3, Param4 = Value
}
val convertedInt: Int = Parameter.Param1.id
```
Also, these values can be caught by pattern matching:
```scala
val param = getSomeEnumValues()
param match {
case Parameter.Param1 => // blahblah
case Parameter.Param2 => // blahblah
case Parameter.Param3 => // blahblah
case Parameter.Param4 => // blahblah
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---