Legal Notice, Privacy Policy

Impressum, Datenschutzerklärung

Cerberus X Documentation

Class IntObject

The IntObject box class can be used to encapsulate an int value inside an object. More...

Declarations

Fields
value : Int The value contained in the IntObject.
Constructors
New () Creates a new IntObject with the value 0.
New ( value:Float ) Creates a new IntObject with the given float value converted to an int.
New ( value:Int ) Creates a new IntObject with the given value.
Methods
Compare : Int ( box:IntObject ) Compares IntObjects.
Equals : Bool ( box:IntObject ) Tests IntObjects for equality.
ToFloat : Float () Returns the int value contained in the IntObject converted to a float.
ToInt : Int () Returns the int value contained in the IntObject.
ToString : String () Returns the int value contained in the IntObject converted to a string.

Detailed Discussion

The IntObject box class can be used to encapsulate an int value inside an object.


Fields Documentation

Field value : Int

The value contained in the IntObject.


Constructors Documentation

Method New ()

Creates a new IntObject with the value 0.

Method New ( value:Float )

Creates a new IntObject with the given float value converted to an int.

Method New ( value:Int )

Creates a new IntObject with the given value.


Methods Documentation

Method Compare : Int ( box:IntObject )

Compares IntObjects. Returns a value <0 if this int value is less than box, a value >0 if this int value is greater than box, or 0 if both int values are equal.

Method Equals : Bool ( box:IntObject )

Tests IntObjects for equality. Returns true if the values are equal, else false.

Method ToFloat : Float ()

Returns the int value contained in the IntObject converted to a float.

Method ToInt : Int ()

Returns the int value contained in the IntObject.

Method ToString : String ()

Returns the int value contained in the IntObject converted to a string.