Home Reference Source Repository
import {FincAndNode} from 'fincontracts-lib/src/fincontract.js'
public class | source

FincAndNode

Extends:

FincNode → FincAndNode

FincAndNode extends FincNode and implements And primitive, which takes two sub-fincontracts and makes them both valid. Meaning that the payer has to pay now both of them.

Constructor Summary

Public Constructor
public

constructor(leftChild: FincNode, rightChild: FincNode)

Constructs FincAndNode with two children

Inherited Summary

From class FincNode
public

References to children, can be an Array of FincNode, a FincNode or simply null.

Public Constructors

public constructor(leftChild: FincNode, rightChild: FincNode) source

Constructs FincAndNode with two children

Override:

FincNode#constructor

Params:

NameTypeAttributeDescription
leftChild FincNode

first sub-fincontract to be embedded

rightChild FincNode

second sub-fincontract to be embedded