MCPcopy Create free account
hub / github.com/PCGen/pcgen / clone

Method clone

code/src/java/pcgen/core/EquipmentModifier.java:220–235  ·  view source on GitHub ↗

Clone an EquipmentModifier @return a clone of the EquipmentModifier

()

Source from the content-addressed store, hash-verified

218 * @return a clone of the EquipmentModifier
219 */
220 @Override
221 public EquipmentModifier clone()
222 {
223 EquipmentModifier aObj = null;
224
225 try
226 {
227 aObj = (EquipmentModifier) super.clone();
228 }
229 catch (CloneNotSupportedException exc)
230 {
231 ShowMessageDelegate.showMessageDialog(exc.getMessage(), Constants.APPLICATION_NAME, MessageType.ERROR);
232 }
233
234 return aObj;
235 }
236
237 /* TODO: This needs to call getEquipNamePortion until after 5.10, when it can
238 * be changed to a programmer useful string as per normal.

Callers 2

addEqModifierMethod · 0.95
finishEquipmentMethod · 0.95

Calls 2

showMessageDialogMethod · 0.95
getMessageMethod · 0.65

Tested by

no test coverage detected