jiface.erlang.int

->str

(->str this)

Convert to a string.

behaviour

bind

(bind this binds)

Make new Erlang term replacing variables with the respective values from bindings argument(s).

clone

(clone this)

Clone the Erlang object.

decode

(decode this buff)

Read binary data in the Erlang external format, and produce a corresponding Erlang data type object.

encode

(encode this buff)

Convert the object according to the rules of the Erlang external format.

equal?

(equal? this other-erl-obj)

Determine if two Erlang objects are equal.

ErlangInt

protocol

members

get-bigint-value

(get-bigint-value this)

Get this number as a BigInteger.

get-bit-length

(get-bit-length this)

Returns the number of bits in the minimal two’s-complement representation of this BigInteger, excluding a sign bit.

get-byte-value

(get-byte-value this)

Get this number as a byte.

get-char-value

(get-char-value this)

Get this number as a char.

get-int-value

(get-int-value this)

Get this number as an int.

get-long-value

(get-long-value this)

Get this number as a long, or rather truncate all but the least significant 64 bits from the 2’s complement representation of this number and return them as a long.

get-short-value

(get-short-value this)

Get this number as a short.

get-signum

(get-signum this)

Return the signum function of this object.

get-uint-value

(get-uint-value this)

Get this number as a non-negative int.

get-ushort-value

(get-ushort-value this)

Get this number as a non-negative short.

long?

(long? this)

Determine if this value can be represented as a long without truncation.

ulong?

(ulong? this)

Determine if this value can be represented as an unsigned long without truncation, that is if the value is non-negative and its bit pattern completely fits in a long.

hash

(hash this)

Get the object hash code.

match

(match this term binds)

Perform match operation against given term.