HoconValue

zio.blocks.config.hocon.HoconValue
See theHoconValue companion trait
object HoconValue

Attributes

Companion
trait
Source
HoconValue.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
HoconValue.type

Members list

Type members

Classlikes

final case class Arr(elements: Seq[HoconValue]) extends HoconValue

Attributes

Source
HoconValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait HoconValue
class Object
trait Matchable
class Any
Show all
final case class Bool(value: Boolean) extends HoconValue

Attributes

Source
HoconValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait HoconValue
class Object
trait Matchable
class Any
Show all
case object Null extends HoconValue

Attributes

Source
HoconValue.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HoconValue
class Object
trait Matchable
class Any
Show all
Self type
Null.type
final case class Num(value: Double) extends HoconValue

Attributes

Source
HoconValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait HoconValue
class Object
trait Matchable
class Any
Show all
final case class Obj(fields: Map[String, HoconValue]) extends HoconValue

Attributes

Source
HoconValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait HoconValue
class Object
trait Matchable
class Any
Show all
final case class Str(value: String) extends HoconValue

Attributes

Source
HoconValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait HoconValue
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

Deep-merge two HoconValues. When both are Obj, fields are merged recursively with the right side winning on conflicts. Otherwise the right side replaces the left.

Deep-merge two HoconValues. When both are Obj, fields are merged recursively with the right side winning on conflicts. Otherwise the right side replaces the left.

Attributes

Source
HoconValue.scala
def flatten(value: HoconValue): Map[String, String]

Flatten a HoconValue into a map of dot-separated key-value pairs. Objects are recursively flattened. Arrays are indexed numerically (e.g. "arr.0", "arr.1"). Null values are omitted.

Flatten a HoconValue into a map of dot-separated key-value pairs. Objects are recursively flattened. Arrays are indexed numerically (e.g. "arr.0", "arr.1"). Null values are omitted.

Attributes

Source
HoconValue.scala