lloydmeta / enumeratum

A type-safe, reflection-free, powerful enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations.
MIT License
1.19k stars 146 forks source link

Add String ValueEnum #56

Closed lloydmeta closed 8 years ago

lloydmeta commented 8 years ago

This follows from the discussion in #55

lloydmeta commented 8 years ago

@randomstatistic since I had some spare time I went ahead and added a StringEnum as we discussed in #55. I had wanted to do some refactoring in the test code as well, which is a chore that I don't think anyone would enjoy ;)

Anyways, 1.4.9 should be up on Maven Central shortly and it'll have the new StringEnum and StringEnumEntry under enumeratum.values.