public class OtpErlangUInt extends OtpErlangLong
OtpErlangObject.Hash
hashCodeValue
Constructor | Description |
---|---|
OtpErlangUInt(int i) |
Create an Erlang integer from the given value.
|
OtpErlangUInt(OtpInputStream buf) |
Create an Erlang integer from a stream containing an integer encoded in
Erlang external format.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
bigIntegerValue, bitLength, byteValue, charValue, doHashCode, encode, equals, intValue, isLong, isULong, longValue, shortValue, signum, toString, uIntValue, uShortValue
public OtpErlangUInt(int i) throws OtpErlangRangeException
i
- the non-negative int value to use.OtpErlangRangeException
- if the value is negative.public OtpErlangUInt(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, or
the value is negative.