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

📄 id.java

📁 Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的
💻 JAVA
字号:
     package com.croftsoft.core.util.id;

     import java.io.Serializable;

     /*********************************************************************
     * An Id is used for consistent cross-process identification.
     *
     * <p>     * Id objects are useful for identifying, by equality, distributed
     * and persistent objects (space and time, respectively).
     * </p>
     *
     * <p>     * An object that implements Id has the following characteristics:
     *
     * <ul>
     * <li> immutable;</li>
     * <li> Serializable and deeply Cloneable; and</li>
     * <li> results from the methods equals() and hashCode() are not based
     *      upon transient data and are consistent across processes.</li>
     * </ul>     * </p>
     *
     * @version
     *   2003-06-17
     * @since
     *   2000-01-16
     * @author
     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>
     *********************************************************************/

     public interface  Id       extends Cloneable, Serializable
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     {

     public Object   clone    ( );

     public boolean  equals   ( Object  other );

     public int      hashCode ( );

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

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