Package com.ericsson.otp.erlang
Class OtpErlangInt
java.lang.Object
com.ericsson.otp.erlang.OtpErlangObject
com.ericsson.otp.erlang.OtpErlangLong
com.ericsson.otp.erlang.OtpErlangInt
- All Implemented Interfaces:
Serializable
,Cloneable
Provides a Java representation of Erlang integral types.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ericsson.otp.erlang.OtpErlangObject
OtpErlangObject.Hash
-
Field Summary
Fields inherited from class com.ericsson.otp.erlang.OtpErlangObject
hashCodeValue
-
Constructor Summary
ConstructorDescriptionOtpErlangInt
(int i) Create an Erlang integer from the given value.Create an Erlang integer from a stream containing an integer encoded in Erlang external format. -
Method Summary
Methods inherited from class com.ericsson.otp.erlang.OtpErlangLong
bigIntegerValue, bitLength, byteValue, charValue, doHashCode, encode, equals, intValue, isLong, isULong, longValue, shortValue, signum, toString, uIntValue, uShortValue
-
Constructor Details
-
OtpErlangInt
public OtpErlangInt(int i) Create an Erlang integer from the given value.- Parameters:
i
- the int value to use.
-
OtpErlangInt
Create an Erlang integer from a stream containing an integer encoded in Erlang external format.- Parameters:
buf
- the stream containing the encoded value.- Throws:
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.
-