Package 

Interface Identifiable

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface Identifiable<T extends Serializable>
     implements Serializable
                        

    可识别的对象。

    此接口的实例拥有一个唯一标识符,其equalshashCode方法基于此唯一标识符实现。 它们拥有默认的实现,也可以通过Identifiable.delegate委托实现。

    注意:数据类会覆盖此接口的方法的默认实现。

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean equals(Object other)
      Integer hashCode()
      String toString()
      abstract T getId()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait