Interface CloneTable


  • public interface CloneTable
    An interface which allows extending a cloner to types that it would not otherwise support.
    • Field Detail

      • NULL

        static final CloneTable NULL
        A null clone table.
    • Method Detail

      • clone

        java.lang.Object clone​(java.lang.Object original,
                               ObjectCloner objectCloner,
                               ClassCloner classCloner)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
        Attempt to clone the given object. If no clone can be made or acquired from this table, return null.
        Parameters:
        original - the original
        objectCloner - the object cloner
        classCloner - the class cloner
        Returns:
        the clone or null if none can be acquired
        Throws:
        java.io.IOException - if an I/O error occurs
        java.lang.ClassNotFoundException - if a class is not found