Package org.atlanmod.commons
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopyTo(T target)Copies all the contents from this object to thetarget.
-
-
-
Method Detail
-
copyTo
void copyTo(T target)
Copies all the contents from this object to thetarget.- Parameters:
target- the object where to store the copied content
-
-