Created
October 17, 2013 10:37
-
-
Save pirita/7022697 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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