Class SerializationCopier

  • All Implemented Interfaces:
    Copier

    public class SerializationCopier
    extends Object
    implements Copier
    Copier that copies an object by serializing and subsequently deserializing it again.

    As per the platform serialization rules, the object and all its non transient dependencies have to implement the Serializable interface.

    Since:
    2.0
    Author:
    Arjan Tijms
    • Constructor Detail

      • SerializationCopier

        public SerializationCopier()
    • Method Detail

      • copy

        public Object copy​(Object object)
        Description copied from interface: Copier
        Return an object that's logically a copy of the given object.

        Specified by:
        copy in interface Copier
        Parameters:
        object - the object to be copied
        Returns:
        a copy of the given object