Package org.docx4j.org.apache.poi.common
Interface Duplicatable
- All Known Implementing Classes:
AgileEncryptionHeader,AgileEncryptionVerifier,BinaryRC4EncryptionHeader,BinaryRC4EncryptionVerifier,CryptoAPIEncryptionHeader,CryptoAPIEncryptionVerifier,EncryptionHeader,EncryptionVerifier,StandardEncryptionHeader,StandardEncryptionVerifier,XOREncryptionHeader,XOREncryptionVerifier
public interface Duplicatable
This is an alternative to the
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.- See Also:
-
Method Summary
-
Method Details
-
copy
Duplicatable copy()- Returns:
- a deep copy of the implementing class / instance
-