com.ericsson.otp.erlang
public class OtpErlangInt extends OtpErlangLong implements java.io.Serializable, java.lang.Cloneable
OtpErlangObject.Hash
hashCodeValue
Constructor and Description |
---|
OtpErlangInt(int i)
Create an Erlang integer from the given value.
|
OtpErlangInt(OtpInputStream buf)
Create an Erlang integer from a stream containing an integer encoded in
Erlang external format.
|
bigIntegerValue, bitLength, byteValue, charValue, doHashCode, encode, equals, intValue, isLong, isULong, longValue, shortValue, signum, toString, uIntValue, uShortValue
clone, decode, hashCode
public OtpErlangInt(int i)
i
- the int value to use.public OtpErlangInt(OtpInputStream buf) throws OtpErlangRangeException, OtpErlangDecodeException
buf
- the stream containing the encoded value.OtpErlangDecodeException
- if the buffer does not contain a valid external
representation of an Erlang integer.OtpErlangRangeException
- if the value is too large to be represented as an int.