abs()
:
BigInteger
Returns a new Integer with the absolute value of this Integer.
add(value
:
Number)
:
BigInteger
Adds a Number value to this Integer and returns the new Integer.
divide(value
:
Number)
:
BigInteger
Divides this Integer by the specified Integer and returns the new Integer.
equals(other
:
Object)
:
boolean
Compares two Integer values whether they are equivalent.
get()
:
Number
Returns the value of the Integer as a Number.
multiply(value
:
Number)
:
BigInteger
Multiples the specified Number value with this Integer and returns the new Integer.
negate()
:
BigInteger
Returns a new Integer with the negated value of this Integer.
subtract(value
:
Number)
:
BigInteger
Subtracts the specified Number value from this Integer and returns the new Integer.
valueOf()
:
Object
The valueOf() method is called by the ECMAScript interpret to return the "natural" value of an object.
abs
Returns a new Integer with the absolute value of this Integer.
add
Adds a Number value to this Integer and returns the new Integer.
Parameters:
value
-
the value to add to this Integer.
Returns:
the new Integer with the value added.
add
Adds an Integer value to this Integer and returns the new Integer.
Parameters:
value
-
the value to add to this Integer.
Returns:
the new Integer with the value added.
divide
Divides this Integer by the specified Integer and returns the new Integer.
Parameters:
value
-
the value to use to divide this Integer.
Returns:
the new Integer.
divide
Divides this Integer by the specified Integer and returns the new Integer.
Parameters:
value
-
the value to use to divide this Integer.
Returns:
the new Integer.
equals
equals(other
:
Object)
:
boolean
Compares two Integer values whether they are equivalent.
Parameters:
other
-
the object to compare against this Integer.
get
Returns the value of the Integer as a Number.
Returns:
the value of the Integer.
hashCode
Calculates the hash code for this Integer;
multiply
Multiples the specified Number value with this Integer and returns the new Integer.
Parameters:
value
-
the value to multiply with this Integer.
Returns:
the new Integer.
multiply
Multiples the specified Integer value with this Integer and returns the new Integer.
Parameters:
value
-
the value to multiply with this Integer.
Returns:
the new Integer.
negate
Returns a new Integer with the negated value of this Integer.
subtract
Subtracts the specified Number value from this Integer and returns the new Integer.
Parameters:
value
-
the value to add to this Integer.
Returns:
the new Integer with the value subtraced.
subtract
Subtracts the specified Integer value from this Integer and returns the new Integer.
Parameters:
value
-
the value to add to this Integer.
Returns:
the new Integer with the value subtraced.
toString
Returns a string representation of this object.
Returns:
a string representation of this object.
valueOf
The valueOf() method is called by the ECMAScript interpret to return
the "natural" value of an object. The Inetger object returns its
current value as number. With this behavior script snippets can
be written like:
var i = new Integer( 10 );
var x = 1 + d.add( 2 );
where x will be at the end 13.
Returns:
the value of this object.