util.Integer methods

Methods for the util.Integer class.

Table 1. Class methods
Name Description
abs(
  i INTEGER
 )
  RETURNS INTEGER
Returns the absolute value of an integer.
and(
  x INTEGER,
  y INTEGER   
 )
  RETURNS INTEGER
Returns the result of a bitwise AND on two INTEGER values.
andNot(
  x INTEGER,
  y INTEGER   
 )
  RETURNS INTEGER
Returns the result of a bitwise AND of the 1st INTEGER and the inverted 2nd INTEGER.
clearBit(
  i INTEGER,
  n SMALLINT
 )
  RETURNS INTEGER
Returns the INTEGER parameter with the bit at the designated position set to 0.
not(
  i INTEGER
 )
  RETURNS INTEGER
Returns the INTEGER value with all bits inverted.
or(
  x INTEGER,
  y INTEGER   
 )
  RETURNS INTEGER
Returns the result of a bitwise OR on two INTEGER values.
parseBinaryString(
  s STRING
 )
  RETURNS INTEGER
Returns an INTEGER from its binary (base 2) string representation
parseHexString(
  s STRING
 )
  RETURNS INTEGER
Returns an INTEGER from its hexadecimal (base 16) string representation.
setBit(
  i INTEGER,
  n INTEGER
 )
  RETURNS INTEGER
Returns the INTEGER parameter with the bit at the designated position set to 1.
shiftLeft(
  i INTEGER,
  n SMALLINT
 )
  RETURNS INTEGER
Returns the INTEGER value left-shifted by the given bit places.
shiftRight(
  i INTEGER,
  n SMALLINT
 )
  RETURNS INTEGER
Returns the INTEGER value right-shifted by the given bit places.
testBit(
  i INTEGER
  n INTEGER
 )
  RETURNS BOOLEAN
Returns TRUE, if in the INTEGER value, the bit at the designed position is set.
toBinaryString(
  i INTEGER
 )
  RETURNS STRING
Returns the string representation of an INTEGER, as an unsigned integer in base 2.
toHexString(
  i INTEGER
 )
  RETURNS STRING
Returns the string representation of an INTEGER, as an unsigned integer in base 16.
xor(
  x INTEGER,
  y INTEGER   
 )
  RETURNS INTEGER
Returns the result of a bitwise XOR on two INTEGER values.