Top Description Methods
org.apache.poi.common

public Interface Duplicatable

Known Direct Implementers
org.apache.poi.ddf.EscherRecord, org.apache.poi.hpsf.ClassID, org.apache.poi.hssf.record.LbsDataSubRecord.LbsDropData, org.apache.poi.hssf.record.Record, org.apache.poi.hssf.record.SubRecord, org.apache.poi.hssf.record.aggregates.ColumnInfoRecordsAggregate, org.apache.poi.hssf.record.cf.BorderFormatting, org.apache.poi.hssf.record.cf.ColorGradientFormatting, org.apache.poi.hssf.record.cf.ColorGradientThreshold, org.apache.poi.hssf.record.cf.DataBarFormatting, org.apache.poi.hssf.record.cf.DataBarThreshold, org.apache.poi.hssf.record.cf.FontFormatting, org.apache.poi.hssf.record.cf.IconMultiStateFormatting, org.apache.poi.hssf.record.cf.IconMultiStateThreshold, org.apache.poi.hssf.record.cf.PatternFormatting, org.apache.poi.hssf.record.common.ExtendedColor, org.apache.poi.hssf.record.common.FtrHeader, org.apache.poi.hssf.record.common.UnicodeString, org.apache.poi.hssf.usermodel.HSSFCellStyle, org.apache.poi.hssf.usermodel.HSSFHyperlink, org.apache.poi.poifs.crypt.EncryptionHeader, org.apache.poi.poifs.crypt.EncryptionVerifier, org.apache.poi.sl.usermodel.Insets2D, org.apache.poi.ss.formula.ptg.Ptg, org.apache.poi.ss.util.CellRangeAddressBase, org.apache.poi.util.IntMapper

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
Copy Constructor versus Cloning

Method Summary

Modifier and TypeMethod and Description
public Duplicatable

Returns:

a deep copy of the implementing class / instance
copy
()

Method Detail

copyback to summary
public Duplicatable copy()
Returns:Duplicatable

a deep copy of the implementing class / instance