Boolean

zio.blocks.schema.json.JsonType.Boolean
case object Boolean extends JsonType

Attributes

Source
JsonType.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JsonType
trait Json => Boolean
class Object
trait Matchable
class Any
Show all
Self type
Boolean.type

Members list

Type members

Types

final override type Type = Boolean

The corresponding Json subtype for this JSON type.

The corresponding Json subtype for this JSON type.

Attributes

Source
JsonType.scala
final override type Unwrap = Boolean

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

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

Attributes

Source
JsonType.scala

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredType = this.type

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Inherited and Abstract types

type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Inherited methods

def andThen[A](g: Boolean => A): Json => 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
override def apply(json: Json): Boolean

Returns true if the given JSON value is of this type.

Returns true if the given JSON value is of this type.

Attributes

Definition Classes
JsonType -> Function1
Inherited from:
JsonType
Source
JsonType.scala
def compose[A](g: A => Json): 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
def fromProduct(p: Product): MirroredMonoType

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.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

Concrete fields

val typeIndex: Int

Returns the type index for ordering: Null=0, Boolean=1, Number=2, String=3, Array=4, Object=5

Returns the type index for ordering: Null=0, Boolean=1, Number=2, String=3, Array=4, Object=5

Attributes

Source
JsonType.scala