Package com.ericsson.otp.erlang
Class OtpErlangShort
- java.lang.Object
- 
- com.ericsson.otp.erlang.OtpErlangObject
- 
- com.ericsson.otp.erlang.OtpErlangLong
- 
- com.ericsson.otp.erlang.OtpErlangShort
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable
 
 public class OtpErlangShort extends OtpErlangLong Provides a Java representation of Erlang integral types.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.ericsson.otp.erlang.OtpErlangObjectOtpErlangObject.Hash
 
- 
 - 
Field Summary- 
Fields inherited from class com.ericsson.otp.erlang.OtpErlangObjecthashCodeValue
 
- 
 - 
Constructor SummaryConstructors 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.
 - 
Method Summary- 
Methods inherited from class com.ericsson.otp.erlang.OtpErlangLongbigIntegerValue, bitLength, byteValue, charValue, doHashCode, encode, equals, intValue, isLong, isULong, longValue, shortValue, signum, toString, uIntValue, uShortValue
 
- 
 
- 
- 
- 
Constructor Detail- 
OtpErlangShortpublic OtpErlangShort(short s) Create an Erlang integer from the given value.- Parameters:
- s- the short value to use.
 
 - 
OtpErlangShortpublic OtpErlangShort(OtpInputStream buf) throws OtpErlangRangeException, OtpErlangDecodeException 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 a short.
 
 
- 
 
-