JsonNil

io.github.cakelier.tuples.space.JsonTuple$.JsonNil$
case object JsonNil extends JsonTuple

An empty JSON tuple, which could be seen also as a terminator for a JSON tuple definition.

For all data structures recursively defined, this represents the "base case" of the recursive definition, the empty tuple which signals that no more elements needs to be expected. So it has a meaning used on its own, representing an empty tuple, but also can be used for ending a definition of a tuple with a syntax such as

val tuple = 0 #: true #: "hello" #: JsonNil

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JsonTuple
class Object
trait Matchable
class Any
Show all
Self type
JsonNil.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton

The name of the type

The name of the type

Attributes

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

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

infix override def #:(h: JsonElement): JsonTuple

The constructor method for a JSON tuple, creating a new tuple from this tuple prepending a new head element to it. Being an operator ending with ":", this method is right associative, allowing a syntax such as

The constructor method for a JSON tuple, creating a new tuple from this tuple prepending a new head element to it. Being an operator ending with ":", this method is right associative, allowing a syntax such as

val tuple = 0 #: true #: "hello" #: JsonNil

Value parameters

h

the new element to be prepended to this tuple, for creating a new tuple

Attributes

Returns

a new tuple with the new element prepended to this tuple

Definition Classes
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
Any

Inherited methods

def fromProduct(p: Product): MirroredMonoType

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

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

Attributes

Inherited from:
Singleton

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product