IntRef
Holds an integer value
Operations
Add
Adds to value
method : public : Add(value:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
value | Int | value to add to |
Clone
Clones the object instance
method : public : Clone() ~ System.IntRef
Return
Type | Description |
---|---|
IntRef | cloned the object instance |
Compare
Compares two objects
method : public : native : Compare(rhs:System.Compare) ~ Int
Parameters
Name | Type | Description |
---|---|---|
rhs | Compare | compare object |
Return
Type | Description |
---|---|
Int | 0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater |
Div
Divide by value
method : public : Div(value:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
value | Int | value to divide by |
FromArray
Creates an array of references from primitives
function : FromArray(input:Int[]) ~ IntRef[]
Parameters
Name | Type | Description |
---|---|---|
input | Int | array of primitives |
Return
Type | Description |
---|---|
IntRef | an array of references |
HashID
Returns a unique hash ID for a integer
method : public : HashID() ~ Int
Return
Type | Description |
---|---|
Int | hash ID |
Mul
Multiply to value
method : public : Mul(value:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
value | Int | value to multiply by |
Set
Set integer value
method : public : Set(value:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
value | Int | integer value |
Sub
Subtract from value
method : public : Sub(value:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
value | Int | value to subtract by |