<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0) on Thu Dec 06 18:47:27 CET 2012 --> <TITLE> OtpErlangLong (Java-Erlang Interface Library) </TITLE> <META NAME="keywords" CONTENT="com.ericsson.otp.erlang.OtpErlangLong class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="OtpErlangLong (Java-Erlang Interface Library)"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/ericsson/otp/erlang/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangList.SubList.html" title="class in com.ericsson.otp.erlang"><B>PREV CLASS</B></A> <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/ericsson/otp/erlang/OtpErlangLong.html" target="_top"><B>FRAMES</B></A> <A HREF="OtpErlangLong.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.ericsson.otp.erlang.OtpErlangObject">NESTED</A> | <A HREF="#fields_inherited_from_class_com.ericsson.otp.erlang.OtpErlangObject">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <A NAME="main"></A> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.ericsson.otp.erlang</FONT> <BR> Class OtpErlangLong</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">com.ericsson.otp.erlang.OtpErlangObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.ericsson.otp.erlang.OtpErlangLong</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Cloneable</DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangByte.html" title="class in com.ericsson.otp.erlang">OtpErlangByte</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangChar.html" title="class in com.ericsson.otp.erlang">OtpErlangChar</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangInt.html" title="class in com.ericsson.otp.erlang">OtpErlangInt</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangShort.html" title="class in com.ericsson.otp.erlang">OtpErlangShort</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangUInt.html" title="class in com.ericsson.otp.erlang">OtpErlangUInt</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangUShort.html" title="class in com.ericsson.otp.erlang">OtpErlangUShort</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>OtpErlangLong</B><DT>extends <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A><DT>implements java.io.Serializable, java.lang.Cloneable</DL> </PRE> <P> Provides a Java representation of Erlang integral types. Erlang does not distinguish between different integral types, however this class and its subclasses <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangByte.html" title="class in com.ericsson.otp.erlang"><CODE>OtpErlangByte</CODE></A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangChar.html" title="class in com.ericsson.otp.erlang"><CODE>OtpErlangChar</CODE></A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangInt.html" title="class in com.ericsson.otp.erlang"><CODE>OtpErlangInt</CODE></A>, and <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangShort.html" title="class in com.ericsson.otp.erlang"><CODE>OtpErlangShort</CODE></A> attempt to map the Erlang types onto the various Java integral types. Two additional classes, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangUInt.html" title="class in com.ericsson.otp.erlang"><CODE>OtpErlangUInt</CODE></A> and <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangUShort.html" title="class in com.ericsson.otp.erlang"><CODE>OtpErlangUShort</CODE></A> are provided for Corba compatibility. See the documentation for IC for more information. <P> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#com.ericsson.otp.erlang.OtpErlangLong">Serialized Form</A></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.ericsson.otp.erlang.OtpErlangObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.ericsson.otp.erlang.<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.Hash.html" title="class in com.ericsson.otp.erlang">OtpErlangObject.Hash</A></CODE></TD> </TR> </TABLE> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> </TABLE> <A NAME="fields_inherited_from_class_com.ericsson.otp.erlang.OtpErlangObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class com.ericsson.otp.erlang.<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#hashCodeValue">hashCodeValue</A></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#OtpErlangLong(java.math.BigInteger)">OtpErlangLong</A></B>(java.math.BigInteger v)</CODE> <BR> Create an Erlang integer from the given value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#OtpErlangLong(long)">OtpErlangLong</A></B>(long l)</CODE> <BR> Create an Erlang integer from the given value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#OtpErlangLong(com.ericsson.otp.erlang.OtpInputStream)">OtpErlangLong</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpInputStream.html" title="class in com.ericsson.otp.erlang">OtpInputStream</A> buf)</CODE> <BR> Create an Erlang integer from a stream containing an integer encoded in Erlang external format.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.math.BigInteger</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#bigIntegerValue()">bigIntegerValue</A></B>()</CODE> <BR> Get this number as a BigInteger.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#bitLength()">bitLength</A></B>()</CODE> <BR> Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> byte</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#byteValue()">byteValue</A></B>()</CODE> <BR> Get this number as a byte.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> char</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#charValue()">charValue</A></B>()</CODE> <BR> Get this number as a char.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#doHashCode()">doHashCode</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#encode(com.ericsson.otp.erlang.OtpOutputStream)">encode</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html" title="class in com.ericsson.otp.erlang">OtpOutputStream</A> buf)</CODE> <BR> Convert this number to the equivalent Erlang external representation.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object o)</CODE> <BR> Determine if two numbers are equal.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#intValue()">intValue</A></B>()</CODE> <BR> Get this number as an int.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#isLong()">isLong</A></B>()</CODE> <BR> Determine if this value can be represented as a long without truncation.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#isULong()">isULong</A></B>()</CODE> <BR> Determine if this value can be represented as an unsigned long without truncation, that is if the value is non-negative and its bit pattern completely fits in a long.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> long</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#longValue()">longValue</A></B>()</CODE> <BR> Get this number as a long, or rather truncate all but the least significant 64 bits from the 2's complement representation of this number and return them as a long.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> short</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#shortValue()">shortValue</A></B>()</CODE> <BR> Get this number as a short.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#signum()">signum</A></B>()</CODE> <BR> Return the signum function of this object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#toString()">toString</A></B>()</CODE> <BR> Get the string representation of this number.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#uIntValue()">uIntValue</A></B>()</CODE> <BR> Get this number as a non-negative int.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> short</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangLong.html#uShortValue()">uShortValue</A></B>()</CODE> <BR> Get this number as a non-negative short.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.ericsson.otp.erlang.OtpErlangObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.ericsson.otp.erlang.<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#clone()">clone</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#decode(com.ericsson.otp.erlang.OtpInputStream)">decode</A>, <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#hashCode()">hashCode</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="OtpErlangLong(long)"><!-- --></A><H3> OtpErlangLong</H3> <PRE> public <B>OtpErlangLong</B>(long l)</PRE> <DL> <DD>Create an Erlang integer from the given value. <P> <DL> <DT><B>Parameters:</B><DD><CODE>l</CODE> - the long value to use.</DL> </DL> <HR> <A NAME="OtpErlangLong(java.math.BigInteger)"><!-- --></A><H3> OtpErlangLong</H3> <PRE> public <B>OtpErlangLong</B>(java.math.BigInteger v)</PRE> <DL> <DD>Create an Erlang integer from the given value. <P> <DL> <DT><B>Parameters:</B><DD><CODE>val</CODE> - the long value to use.</DL> </DL> <HR> <A NAME="OtpErlangLong(com.ericsson.otp.erlang.OtpInputStream)"><!-- --></A><H3> OtpErlangLong</H3> <PRE> public <B>OtpErlangLong</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpInputStream.html" title="class in com.ericsson.otp.erlang">OtpInputStream</A> buf) throws <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</A></PRE> <DL> <DD>Create an Erlang integer from a stream containing an integer encoded in Erlang external format. <P> <DL> <DT><B>Parameters:</B><DD><CODE>buf</CODE> - the stream containing the encoded value. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</A></CODE> - if the buffer does not contain a valid external representation of an Erlang integer.</DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="bigIntegerValue()"><!-- --></A><H3> bigIntegerValue</H3> <PRE> public java.math.BigInteger <B>bigIntegerValue</B>()</PRE> <DL> <DD>Get this number as a BigInteger. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the value of this number, as a BigInteger.</DL> </DD> </DL> <HR> <A NAME="longValue()"><!-- --></A><H3> longValue</H3> <PRE> public long <B>longValue</B>()</PRE> <DL> <DD>Get this number as a long, or rather truncate all but the least significant 64 bits from the 2's complement representation of this number and return them as a long. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the value of this number, as a long.</DL> </DD> </DL> <HR> <A NAME="isLong()"><!-- --></A><H3> isLong</H3> <PRE> public boolean <B>isLong</B>()</PRE> <DL> <DD>Determine if this value can be represented as a long without truncation. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>true if this value fits in a long, false otherwise.</DL> </DD> </DL> <HR> <A NAME="isULong()"><!-- --></A><H3> isULong</H3> <PRE> public boolean <B>isULong</B>()</PRE> <DL> <DD>Determine if this value can be represented as an unsigned long without truncation, that is if the value is non-negative and its bit pattern completely fits in a long. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>true if this value is non-negative and fits in a long false otherwise.</DL> </DD> </DL> <HR> <A NAME="bitLength()"><!-- --></A><H3> bitLength</H3> <PRE> public int <B>bitLength</B>()</PRE> <DL> <DD>Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.</DL> </DD> </DL> <HR> <A NAME="signum()"><!-- --></A><H3> signum</H3> <PRE> public int <B>signum</B>()</PRE> <DL> <DD>Return the signum function of this object. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>-1, 0 or 1 as the value is negative, zero or positive.</DL> </DD> </DL> <HR> <A NAME="intValue()"><!-- --></A><H3> intValue</H3> <PRE> public int <B>intValue</B>() throws <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></PRE> <DL> <DD>Get this number as an int. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the value of this number, as an int. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></CODE> - if the value is too large to be represented as an int.</DL> </DD> </DL> <HR> <A NAME="uIntValue()"><!-- --></A><H3> uIntValue</H3> <PRE> public int <B>uIntValue</B>() throws <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></PRE> <DL> <DD>Get this number as a non-negative int. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the value of this number, as an int. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></CODE> - if the value is too large to be represented as an int, or if the value is negative.</DL> </DD> </DL> <HR> <A NAME="shortValue()"><!-- --></A><H3> shortValue</H3> <PRE> public short <B>shortValue</B>() throws <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></PRE> <DL> <DD>Get this number as a short. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the value of this number, as a short. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></CODE> - if the value is too large to be represented as a short.</DL> </DD> </DL> <HR> <A NAME="uShortValue()"><!-- --></A><H3> uShortValue</H3> <PRE> public short <B>uShortValue</B>() throws <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></PRE> <DL> <DD>Get this number as a non-negative short. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the value of this number, as a short. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></CODE> - if the value is too large to be represented as a short, or if the value is negative.</DL> </DD> </DL> <HR> <A NAME="charValue()"><!-- --></A><H3> charValue</H3> <PRE> public char <B>charValue</B>() throws <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></PRE> <DL> <DD>Get this number as a char. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the char value of this number. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></CODE> - if the value is too large to be represented as a char.</DL> </DD> </DL> <HR> <A NAME="byteValue()"><!-- --></A><H3> byteValue</H3> <PRE> public byte <B>byteValue</B>() throws <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></PRE> <DL> <DD>Get this number as a byte. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the byte value of this number. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangRangeException.html" title="class in com.ericsson.otp.erlang">OtpErlangRangeException</A></CODE> - if the value is too large to be represented as a byte.</DL> </DD> </DL> <HR> <A NAME="toString()"><!-- --></A><H3> toString</H3> <PRE> public java.lang.String <B>toString</B>()</PRE> <DL> <DD>Get the string representation of this number. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the string representation of this number.</DL> </DD> </DL> <HR> <A NAME="encode(com.ericsson.otp.erlang.OtpOutputStream)"><!-- --></A><H3> encode</H3> <PRE> public void <B>encode</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html" title="class in com.ericsson.otp.erlang">OtpOutputStream</A> buf)</PRE> <DL> <DD>Convert this number to the equivalent Erlang external representation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#encode(com.ericsson.otp.erlang.OtpOutputStream)">encode</A></CODE> in class <CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>buf</CODE> - an output stream to which the encoded number should be written.</DL> </DD> </DL> <HR> <A NAME="equals(java.lang.Object)"><!-- --></A><H3> equals</H3> <PRE> public boolean <B>equals</B>(java.lang.Object o)</PRE> <DL> <DD>Determine if two numbers are equal. Numbers are equal if they contain the same value. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - the number to compare to. <DT><B>Returns:</B><DD>true if the numbers have the same value.</DL> </DD> </DL> <HR> <A NAME="doHashCode()"><!-- --></A><H3> doHashCode</H3> <PRE> protected int <B>doHashCode</B>()</PRE> <DL> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html#doHashCode()">doHashCode</A></CODE> in class <CODE><A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../com/ericsson/otp/erlang/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangList.SubList.html" title="class in com.ericsson.otp.erlang"><B>PREV CLASS</B></A> <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/ericsson/otp/erlang/OtpErlangLong.html" target="_top"><B>FRAMES</B></A> <A HREF="OtpErlangLong.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.ericsson.otp.erlang.OtpErlangObject">NESTED</A> | <A HREF="#fields_inherited_from_class_com.ericsson.otp.erlang.OtpErlangObject">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>