==================================================================== */
package org.apache.poi.hssf.usermodel;
+import org.apache.poi.common.Duplicatable;
import org.apache.poi.common.usermodel.HyperlinkType;
import org.apache.poi.hssf.record.HyperlinkRecord;
import org.apache.poi.ss.usermodel.Hyperlink;
/**
* Represents an Excel hyperlink.
*/
-public class HSSFHyperlink implements Hyperlink {
+public class HSSFHyperlink implements Hyperlink, Duplicatable {
/**
* Low-level record object that stores the actual hyperlink data
return link_type;
}
+ /**
+ * @return a new HSSFHyperlink based on this
+ * @since POI 5.1.0
+ */
+ @Override
+ public Duplicatable copy() {
+ return new HSSFHyperlink(this);
+ }
+
/**
* @return whether the objects have the same HyperlinkRecord
*/