Home

IntHolder

Holds an integer value

Implements: Compare

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

Compare

Compares two objects

method : public : native : Compare(rhs: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

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