DynamicValue

zio.blocks.schema.DynamicValue
See theDynamicValue companion trait
object DynamicValue

Attributes

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

Members list

Type members

Classlikes

final case class Map(entries: Chunk[(DynamicValue, DynamicValue)]) extends DynamicValue

A collection of key-value pairs where both keys and values are DynamicValues.

A collection of key-value pairs where both keys and values are DynamicValues.

Unlike Record which uses String keys, Map supports arbitrary DynamicValue keys. Entry order is preserved and significant for equality comparison. Use sortMapKeys to normalize key ordering.

Attributes

Companion
object
Source
DynamicValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait DynamicValue
class Object
trait Matchable
class Any
Show all
object Map

Attributes

Companion
class
Source
DynamicValue.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Map.type
case object Null extends DynamicValue

Represents the absence of a value.

Represents the absence of a value.

Analogous to JSON null or Scala's None. Use dropNulls to recursively remove Null values from containers.

Attributes

Source
DynamicValue.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait DynamicValue
class Object
trait Matchable
class Any
Show all
Self type
Null.type
case class Primitive(value: PrimitiveValue) extends DynamicValue

A scalar value wrapped in a PrimitiveValue.

A scalar value wrapped in a PrimitiveValue.

Primitives include strings, booleans, all numeric types (Int, Long, Double, Float, Short, Byte, BigInt, BigDecimal), temporal types (Instant, Duration, LocalDate, etc.), UUID, Char, and Unit.

Attributes

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

A collection of named fields, analogous to a case class or JSON object.

A collection of named fields, analogous to a case class or JSON object.

Field order is preserved and significant for equality comparison. Use sortFields to normalize field ordering for order-independent comparison.

Attributes

Companion
object
Source
DynamicValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait DynamicValue
class Object
trait Matchable
class Any
Show all
object Record

Attributes

Companion
class
Source
DynamicValue.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Record.type
final case class Sequence(elements: Chunk[DynamicValue]) extends DynamicValue

An ordered collection of values, analogous to a List, Array, or Chunk.

An ordered collection of values, analogous to a List, Array, or Chunk.

Element order is preserved and significant for equality comparison.

Attributes

Companion
object
Source
DynamicValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait DynamicValue
class Object
trait Matchable
class Any
Show all
object Sequence

Attributes

Companion
class
Source
DynamicValue.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Sequence.type
final case class Variant(caseNameValue: String, value: DynamicValue) extends DynamicValue

A tagged union value, analogous to a sealed trait with case classes.

A tagged union value, analogous to a sealed trait with case classes.

Contains a case name identifying which variant is active and the associated value for that case.

Attributes

Source
DynamicValue.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait DynamicValue
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

def bigDecimal(b: BigDecimal): DynamicValue

Attributes

Source
DynamicValue.scala
def bigInt(b: BigInt): DynamicValue

Attributes

Source
DynamicValue.scala
def boolean(b: Boolean): DynamicValue

Attributes

Source
DynamicValue.scala
def byte(b: Byte): DynamicValue

Attributes

Source
DynamicValue.scala
def char(c: Char): DynamicValue

Attributes

Source
DynamicValue.scala
def diff(oldValue: DynamicValue, newValue: DynamicValue): DynamicPatch

Compute the difference between two DynamicValues. Returns a DynamicPatch that transforms oldValue into newValue.

Compute the difference between two DynamicValues. Returns a DynamicPatch that transforms oldValue into newValue.

Attributes

Source
DynamicValue.scala
def double(d: Double): DynamicValue

Attributes

Source
DynamicValue.scala
def float(f: Float): DynamicValue

Attributes

Source
DynamicValue.scala

Attributes

Source
DynamicValue.scala
def int(i: Int): DynamicValue

Attributes

Source
DynamicValue.scala
def long(l: Long): DynamicValue

Attributes

Source
DynamicValue.scala
def short(s: Short): DynamicValue

Attributes

Source
DynamicValue.scala
def string(s: String): DynamicValue

Attributes

Source
DynamicValue.scala

Concrete fields

Attributes

Source
DynamicValue.scala

Implicits

Implicits

implicit val ordering: Ordering[DynamicValue]

Attributes

Source
DynamicValue.scala