Class org.as2lib.data.type.Integer

Implemented Interfaces

BasicInterface

Description

Integer represents an integer value.

A integer is a positive or negative natural number including 0.

Field Index

Inherited from Number

MAX_VALUE, MIN_VALUE, NaN, NEGATIVE_INFINITY, POSITIVE_INFINITY

Method Index

new Integer()
toString(), valueOf()

Constructor Detail

Integer

public function Integer(number:Number)

Constructs a new Integer instance.

The passed-in number is transformed into an integer. The number will be floored so that only the base will be used as integer, if it has decimal places.

Parameters

numberthe number to convert to an integer

Throws

NumberFormatExceptionif the passed-in number is infinity or -infinity.

Method Detail

valueOf

public function valueOf(Void):Number

Returns this integer as number.

Return

this integer as number

toString

public function toString():String

Returns the string representation of this integer.

Return

the string representation of this integer

Specified By

toString() in org.as2lib.core.BasicInterface