Link Search Menu Expand Document

//reikai-core/io.github.kerelape.reikai.logic/Optional

Optional

[JVM]
class Optional(value: Entity, condition: Entity) : EntityWrap

Optional entity. Dataizes to the value or Empty depending on the condition. Be aware that the first argument is the value, and the second one is the condition.

Since

0.2.0

Parameters

JVM

   
value Value to dataize when the condition passes.
condition Entity in logical format.

Constructors

   
Optional [JVM]
fun Optional(value: Entity, condition: Entity)

Functions

Name Summary
dataize [JVM]
open suspend override fun dataize(): ByteArray
Representation of the object in bytes.