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

📄 id.html

📁 发布/订阅系统路由重配算法,可应用于ad hoc环境
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DL><HR><A NAME="ID(util.IDGenerator)"><!-- --></A><H3>ID</H3><PRE>public <B>ID</B>(<A HREF="../util/IDGenerator.html" title="class in util">IDGenerator</A>&nbsp;generator)</PRE><DL><DD>Creates a new ID using the specified IDGenerator <code>generator</code>.<P><DT><B>Parameters:</B><DD><CODE>generator</CODE> - the <code>IDGenerator</code> to use.</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;o)</PRE><DL><DD>Compares this object to the specified object.  The result is <code>true</code> if and only if the argument is not <code>null</code> and is a <code>ID</code> object that is based on the same <code>long</code> id-value as this object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to compare with.<DT><B>Returns:</B><DD><code>true</code> if the objects are the same;         <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash code for this <code>ID</code>. The result is the exclusive OR of the two halves of the primitive <code>long</code> value this <code>ID</code> object is based on. So it is computed similarly to the hash code of a  <code>Long</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a hash code value for this <code>ID</code> object.</DL></DD></DL><HR><A NAME="compareTo(util.ID)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(<A HREF="../util/ID.html" title="class in util">ID</A>&nbsp;id)</PRE><DL><DD>Compares two <code>ID</code> objects by comparing the <code>long</code> values numerically the <code>ID</code> objects are based on.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the <code>ID</code> object to compare to.<DT><B>Returns:</B><DD>the value <code>0</code> if this <code>ID</code> is 		   equal to the argument <code>ID</code>;          a value less than <code>0</code> if this <code>ID</code>         is numerically less than the argument <code>ID</code>;          and a value greater than <code>0</code> if this <code>ID</code>         is numerically greater than the argument <code>ID</code>.</DL></DD></DL><HR><A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(java.lang.Object&nbsp;o)</PRE><DL><DD>Compares this <code>ID</code> object to another object.  If the object is an <code>ID</code>, this function behaves like <code>compareTo(ID id)</code>.  Otherwise, it throws a <code>ClassCastException</code> (as <code>ID</code> objects are comparable only to other <code>ID</code> objects).<P><DD><DL><DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the <code>Object</code> to compare to.<DT><B>Returns:</B><DD>the value <code>0</code> if this <code>ID</code> is 		   equal to the argument <code>ID</code>;          a value less than <code>0</code> if this <code>ID</code>         is numerically less than the argument <code>ID</code>;          and a value greater than <code>0</code> if this <code>ID</code>         is numerically greater than the argument <code>ID</code>.<DT><B>Throws:</B><DD><CODE><code>ClassCastException</code></CODE> - if the argument is not an		   <code>ID</code>.<DT><B>See Also:</B><DD><CODE>Comparable</CODE></DL></DD></DL><HR><A NAME="setIDGenerator(util.IDGenerator)"><!-- --></A><H3>setIDGenerator</H3><PRE>public static void <B>setIDGenerator</B>(<A HREF="../util/IDGenerator.html" title="class in util">IDGenerator</A>&nbsp;generator)</PRE><DL><DD>Sets the default <code>IDGenerator</code> providing the  <code>long</code> id-values for new <code>ID</code> objects.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>generator</CODE> - the <code>IDGenerator</code> to use.<DT><B>Throws:</B><DD><CODE><code>IllegalStateException</code></CODE> - if the argument is          <code>null</null>.</DL></DD></DL><HR><A NAME="resetIDGenerator()"><!-- --></A><H3>resetIDGenerator</H3><PRE>public static void <B>resetIDGenerator</B>()</PRE><DL><DD>Resets the default <code>IDGenerator</code> to <code>0</code>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="resetIDGenerator(long)"><!-- --></A><H3>resetIDGenerator</H3><PRE>public static void <B>resetIDGenerator</B>(long&nbsp;value)</PRE><DL><DD>Resets the default <code>IDGenerator</code> to <code>value</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - <code>long</code> value to set the default         <code>IDGenerator</code> to.</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public long <B>getValue</B>()</PRE><DL><DD><DL></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=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="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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../util/Convert.html" title="class in util"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../util/IDGenerator.html" title="class in util"><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="ID.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;FIELD&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;FIELD&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 + -