package typesafeconfig
Integrations for Lightbend's typesafe config system
- Alphabetic
- By Inheritance
- typesafeconfig
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class CoulombConfig(conf: Config, qp: QuantityParser) extends Product with Serializable
Represents a typesafe Config object, augmented with a coulomb QuantityParser to provide additional static type checking for unit expressions.
Represents a typesafe Config object, augmented with a coulomb QuantityParser to provide additional static type checking for unit expressions.
import coulomb.typesafeconfig._ val confTS = ConfigFactory.parseString(""" "duration" = "60 second" "memory" = "100 gigabyte" "bandwidth" = "10 megabyte / second" """) val qp = QuantityParser[Byte :: Second :: Giga :: Mega :: HNil] val conf = confTS.withQuantityParser(qp) val bw = conf.getQuantity[Float, Giga %* Bit %/ Minute]("bandwidth")
- implicit class EnhanceTSConfig extends AnyRef
enhance a Config object to add a QuantityParser
Value Members
- object CoulombConfig extends Serializable
Static methods and values for CoulombConfig