Skip to content

Instantly share code, notes, and snippets.

@pirita
Created October 17, 2013 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirita/7022697 to your computer and use it in GitHub Desktop.
Save pirita/7022697 to your computer and use it in GitHub Desktop.
sealed abstract class NewEnum(val param1: Int, val param2: Int ,val param1: String)
object NewEnum{
case object en1 extends NewEnum(1, 2, "str1")
case object en2 extends NewEnum(1, 3, "str2")
case object en3 extends NewEnum(1, 4, "str3")
case object en4 extends NewEnum(1, 5, "str4")
def values = Map("en1"->en1, "en2"->en2, "en3"->en3, "en4"->en4)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment