Package com.prowidesoftware
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
copyTo(T target)
Copy recursively all attributes of this object to target.
-
-
-
Method Detail
-
copyTo
void copyTo(T target)
Copy recursively all attributes of this object to target. If an attribute implementsCopyableTo
, 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
-
-