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