All Bundles

BoolRef

Holds a boolean value

Implements: Compare, Clone, Stringify, Primitive

Operations

New

Default constructor

New()

Copy constructor

New(value:Bool)
Parameters
NameTypeDescription
valueBoolboolean value

Clone

Clones the object instance

method : public : Clone() ~ System.BoolRef
Return
TypeDescription
BoolRefcloned the object instance

Compare

Compares two objects

method : public : native : Compare(rhs:System.Compare) ~ Int
Parameters
NameTypeDescription
rhsComparecompare object

Return
TypeDescription
Int0 if equal, -1 if types differ, 1 if equal

FromArray

Creates an array of references from primitives

function : FromArray(input:Bool[]) ~ BoolRef[]
Parameters
NameTypeDescription
inputBool[]array of primitives

Return
TypeDescription
BoolRef[]an array of references

Get

Get boolean value

method : public : Get() ~ Bool
Return
TypeDescription
Boolboolean value

HashID

Returns a unique hash ID for a boolean

method : public : HashID() ~ Int
Return
TypeDescription
Inthash ID

Set

Set boolean value

method : public : Set(value:Bool) ~ Nil
Parameters
NameTypeDescription
valueBoolboolean value

ToArray

Creates an array of primitives from references

function : ToArray(input:BoolRef[]) ~ Bool[]
Parameters
NameTypeDescription
inputBoolRef[]array of references

Return
TypeDescription
Bool[]an array of primitives