com.malliina.json.JsonEnumSet.scala Maven / Gradle / Ivy
package com.malliina.json
import com.malliina.values.StringEnumCompanion
@deprecated("Use StringEnumCompanion", "1.8.0")
abstract class JsonEnumSet[T] extends StringEnumCompanion[T] {
def withName(name: String): Option[T] =
all.find(i => resolveName(i).toLowerCase == name.toLowerCase)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy