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

Method clone

code/src/java/pcgen/core/prereq/Prerequisite.java:315–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313 }
314
315 @Override
316 public Prerequisite clone() throws CloneNotSupportedException
317 {
318 final Prerequisite copy = (Prerequisite) super.clone();
319
320 if (prerequisites != null)
321 {
322 copy.prerequisites = new ArrayList<>();
323 for (Prerequisite subreq : prerequisites)
324 {
325 copy.prerequisites.add(subreq.clone());
326 }
327 }
328
329 return copy;
330 }
331
332 /**
333 * Retrieve the description of the prerequisite. This can either be

Callers 1

specifyMethod · 0.45

Calls 1

addMethod · 0.65

Tested by

no test coverage detected