ciris.decoders.JavaUtilConfigDecoders.scala Maven / Gradle / Ivy
package ciris.decoders
import java.util.UUID
import java.util.regex.Pattern
import ciris.ConfigDecoder
trait JavaUtilConfigDecoders {
implicit val regexPatternConfigDecoder: ConfigDecoder[String, Pattern] =
ConfigDecoder.catchNonFatal("Pattern")(Pattern.compile)
implicit val uuidConfigDecoder: ConfigDecoder[String, UUID] =
ConfigDecoder.catchNonFatal("UUID")(UUID.fromString)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy