Packages

p

coulomb

typesafeconfig

package typesafeconfig

Integrations for Lightbend's typesafe config system

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. typesafeconfig
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. 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")
  2. implicit class EnhanceTSConfig extends AnyRef

    enhance a Config object to add a QuantityParser

Value Members

  1. object CoulombConfig extends Serializable

    Static methods and values for CoulombConfig

Inherited from AnyRef

Inherited from Any

Ungrouped