java.io.Serializable, java.lang.Cloneablepublic class OtpErlangShort extends OtpErlangLong
OtpErlangObject.HashhashCodeValue| Constructor | Description |
|---|---|
OtpErlangShort(short s) |
Create an Erlang integer from the given value.
|
OtpErlangShort(OtpInputStream buf) |
Create an Erlang integer from a stream containing an integer encoded in
Erlang external format.
|
finalize, getClass, notify, notifyAll, wait, wait, waitbigIntegerValue, bitLength, byteValue, charValue, doHashCode, encode, equals, intValue, isLong, isULong, longValue, shortValue, signum, toString, uIntValue, uShortValuepublic OtpErlangShort(short s)
s - the short value to use.public OtpErlangShort(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 a short.