All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ciris.decoders.JavaUtilConfigDecoders.scala Maven / Gradle / Ivy

There is a newer version: 0.12.1
Show newest version
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