Interface Copiable<T>

  • Type Parameters:
    T - the type of the copied object
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @ParametersAreNonnullByDefault
    @FunctionalInterface
    public interface Copiable<T>
    An object that can be copied to another.
    • Method Detail

      • copyTo

        void copyTo​(T target)
        Copies all the contents from this object to the target.
        Parameters:
        target - the object where to store the copied content