All Bundles

IntRef

Holds an integer value

Implements: Compare, Clone, Stringify, Primitive

Operations

New

Default constructor

New()

Copy constructor

New(value:Int)
Parameters
NameTypeDescription
valueIntinteger value

Add

Adds to value

method : public : Add(value:Int) ~ Nil
Parameters
NameTypeDescription
valueIntvalue to add to

Clone

Clones the object instance

method : public : Clone() ~ System.IntRef
Return
TypeDescription
IntRefcloned 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 right-hand side i greater, 1 if left-hand side is greater

Dec

Decrements value by 1

method : public : Dec() ~ Nil

Div

Divide by value

method : public : Div(value:Int) ~ Nil
Parameters
NameTypeDescription
valueIntvalue to divide by

FromArray

Creates an array of references from primitives

function : FromArray(input:Int[]) ~ IntRef[]
Parameters
NameTypeDescription
inputInt[]array of primitives

Return
TypeDescription
IntRef[]an array of references

Get

Get integer value

method : public : Get() ~ Int
Return
TypeDescription
Intinteger value

HashID

Returns a unique hash ID for a integer

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

Inc

Increments value by 1

method : public : Inc() ~ Nil

Mul

Multiply to value

method : public : Mul(value:Int) ~ Nil
Parameters
NameTypeDescription
valueIntvalue to multiply by

Set

Set integer value

method : public : Set(value:Int) ~ Nil
Parameters
NameTypeDescription
valueIntinteger value

Sub

Subtract from value

method : public : Sub(value:Int) ~ Nil
Parameters
NameTypeDescription
valueIntvalue to subtract by

ToArray

Creates an array of primitives from references

function : ToArray(input:IntRef[]) ~ Int[]
Parameters
NameTypeDescription
inputIntRef[]array of references

Return
TypeDescription
Int[]an array of primitives