Package jline.lang

Interface Copyable

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface Copyable
     implements Serializable
                        

    Copyable interface allows to perform deep-copy of objects via the copy() method. Classes implementing this interface must also implement Serializable. Copyright (c) 2012-2025, Imperial College London All rights reserved.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • 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
      <T extends Copyable> T copy() Creates a deep copy of this object using serialization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • copy

         <T extends Copyable> T copy()

        Creates a deep copy of this object using serialization.

        Returns:

        A deep copy of this object