Interface CopyableTo<T>

  • Type Parameters:
    T - the type of target

    public interface CopyableTo<T>
    Interface implemented by classes that can be copied to another live object. Implementors of this interface define copyTo(...) which is a deep copy of the current object.
    Since:
    7.8
    • Method Detail

      • copyTo

        void copyTo​(T target)
        Copy recursively all attributes of this object to target. If an attribute implements CopyableTo, then copyTo is invoked also in that attribute.
        Parameters:
        target - the object where these attributes will be copied. may be null, in which case nothing happens.
        Since:
        7.8