public interface Duplicatable
Cloneable
interface without its side-effects.
A class implementing Duplicatable provides a deep-copy of itself - usually this is done via a copy-constructor,
which is invoked with a self-reference by the copy method.
References to child objects are duplicated - references to parents are kept as-is and
might need to be replaced by the parent copy operation.Modifier and Type | Method and Description |
---|---|
Duplicatable |
copy() |
Duplicatable copy()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.