⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idbytes.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TABLE><A NAME="bytes"><!-- --></A><H3>bytes</H3><PRE>public byte[] <B>bytes</B></PRE><DL><DD>The bytes.<P><DL></DL></DL><HR><A NAME="hashIsCached"><!-- --></A><H3>hashIsCached</H3><PRE>protected transient volatile boolean <B>hashIsCached</B></PRE><DL><DD>if true then we have calculated the hash value for this object.<P><DL></DL></DL><HR><A NAME="cachedHash"><!-- --></A><H3>cachedHash</H3><PRE>protected transient int <B>cachedHash</B></PRE><DL><DD>The cached hash value for this object<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="IDBytes()"><!-- --></A><H3>IDBytes</H3><PRE>public <B>IDBytes</B>()</PRE><DL><DD>Constructs a new byte representation. This constructor initializes only  the flag fields of the ID.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;target)</PRE><DL><DD>Compares two IDs for equality.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - the ID to be compared against.<DT><B>Returns:</B><DD>boolean true if IDs are equal, false otherwise.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Public member calculates a hash code for this ID. Used by Hashmaps.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>int Containing the hashcode of this ID.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string representation of the ID bytes. The bytes are encoded in hex ASCII format with two characters per byte. The pad bytes between the primary id portion and the flags field are ommitted.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>String containting the URI</DL></DD></DL><HR><A NAME="getUniqueValue()"><!-- --></A><H3>getUniqueValue</H3><PRE>public java.lang.Object <B>getUniqueValue</B>()</PRE><DL><DD>Return an object containing the unique value of the ID. This object must  provide implementations of toString() and hashCode() that are canonical  and conisistent from run-to-run given the same input values. Beyond  this nothing should be assumed about the nature of this object. For some  implementations the object returned may be the same as provided.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Object which can provide canonical representations of the ID.</DL></DD></DL><HR><A NAME="longIntoBytes(int, long)"><!-- --></A><H3>longIntoBytes</H3><PRE>public void <B>longIntoBytes</B>(int&nbsp;offset,                          long&nbsp;value)</PRE><DL><DD>Insert a long value into the byte array. The long is stored in  big-endian order into the byte array begining at the specified index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - location within the byte array to insert.<DD><CODE>value</CODE> - value to be inserted.</DL></DD></DL><HR><A NAME="bytesIntoLong(int)"><!-- --></A><H3>bytesIntoLong</H3><PRE>public long <B>bytesIntoLong</B>(int&nbsp;offset)</PRE><DL><DD>Return the long value of a portion of the byte array. The long is  retrieved in big-endian order from the byte array at the specified  offset.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - location within the byte array to extract.<DT><B>Returns:</B><DD>long value extracted from the byte array.</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=3 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="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/IDBytes.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../net/jxta/impl/id/UUID/CodatID.html" title="class in net.jxta.impl.id.UUID"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../net/jxta/impl/id/UUID/IDFormat.html" title="class in net.jxta.impl.id.UUID"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="IDBytes.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -