Skip to content

Instantly share code, notes, and snippets.

@cokeSchlumpf
Created July 7, 2014 19:23
Show Gist options
  • Save cokeSchlumpf/633829a770a5edfde7d1 to your computer and use it in GitHub Desktop.
Save cokeSchlumpf/633829a770a5edfde7d1 to your computer and use it in GitHub Desktop.
wellnr Scala Commons Enumerations
import com.wellnr.commons.scala.models.EnumerationWithClassName.{BaseType, EnumerationCapabilities}
sealed trait Farbe extends BaseType
object Farbe extends EnumerationCapabilities[Farbe] {
case object Rot extends Farbe
case object Gelb extends Farbe
val values = Seq(Rot, Gelb)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment