DynamicValueType

zio.blocks.schema.DynamicValueType
See theDynamicValueType companion object
sealed trait DynamicValueType extends DynamicValue => Boolean

A sealed trait representing the type of a DynamicValue.

This is used by DynamicValueMergeStrategy to make decisions about recursion without needing access to the actual DynamicValue values.

Each case provides two type members:

  • Type: The corresponding DynamicValue subtype (e.g., DynamicValue.Record)
  • Unwrap: The underlying Scala type of the value (e.g., Chunk[(String, DynamicValue)])

Attributes

Companion
object
Source
DynamicValueType.scala
Graph
Supertypes
trait DynamicValue => Boolean
class Object
trait Matchable
class Any
Known subtypes
object Map
object Null
object Primitive
object Record
object Sequence
object Variant
Show all

Members list

Type members

Types

type Type <: DynamicValue

The corresponding DynamicValue subtype for this DynamicValue type.

The corresponding DynamicValue subtype for this DynamicValue type.

Attributes

Source
DynamicValueType.scala
type Unwrap

The underlying Scala type of the value contained in this DynamicValue type.

The underlying Scala type of the value contained in this DynamicValue type.

Attributes

Source
DynamicValueType.scala

Value members

Abstract methods

def typeIndex: Int

Returns the type index for ordering: Primitive=0, Record=1, Variant=2, Sequence=3, Map=4, Null=5

Returns the type index for ordering: Primitive=0, Record=1, Variant=2, Sequence=3, Map=4, Null=5

Attributes

Source
DynamicValueType.scala

Concrete methods

override def apply(dv: DynamicValue): Boolean

Returns true if the given DynamicValue is of this type.

Returns true if the given DynamicValue is of this type.

Attributes

Definition Classes
Function1
Source
DynamicValueType.scala

Inherited methods

def andThen[A](g: Boolean => A): DynamicValue => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
Source
Function1.scala
def compose[A](g: A => DynamicValue): A => Boolean

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Inherited from:
Function1
Source
Function1.scala
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1
Source
Function1.scala