Maven module :un.api : api-common :
Class : un.api.number.Int32
Extends/Implements : un.api.number.Number
Subclasses : -

author  Johann Sorel


Variables : -
Functions : add, subtract, mult, divide, zero, isZero, one, isOne, pow, toInteger, toLong, toFloat, toDouble, encode, encodeHexa, encodeHexa, decode, decode, decode, decodeUnsigned, decodeHexa, decodeHexa, decodeHexa, decodeHexa, getSignificantNumberOfNBits



public Arithmetic add (Arithmetic other)

public Arithmetic subtract (Arithmetic other)

public Arithmetic mult (Arithmetic other)

public Arithmetic divide (Arithmetic other)

public Arithmetic zero ()

public boolean isZero ()

public Arithmetic one ()

public boolean isOne ()

public Arithmetic pow (int n)

public int toInteger ()

public long toLong ()

public float toFloat ()

public double toDouble ()

public Chars encode (int candidate)

public Chars encodeHexa (int candidate)

public Chars encodeHexa (byte[] array)

public int decode (Chars candidate)


param  candidate text de decode
param  fromIndex start offset
param  toIndex last character excluded,
or use -1 to stop on sequence end or invalid character.
return  decoded value
public int decode (Chars candidate, int fromIndex, int toIndex)

public int decode (CharIterator ite, boolean strict)


Read a fixed length unsigned integer.
param  ite iterator to decoder integer from
param  length integer length
return  unsigned integer
public int decodeUnsigned (CharIterator ite, int length)

public int decodeHexa (Chars candidate)

public int decodeHexa (Chars candidate, int fromIndex, int toIndex)

public int decodeHexa (CharIterator ite)

public int decodeHexa (CharIterator ite, int length)


Count the minimum number of bits needed to represent this value.
param  value unsigned integer.
return  number of significant bits.
public int getSignificantNumberOfNBits (int value)