20 package net.sf.gridarta.model.treasurelist;
22 import java.util.List;
23 import javax.swing.tree.DefaultMutableTreeNode;
24 import javax.swing.tree.MutableTreeNode;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
59 public MutableTreeNode
getClone(
final boolean processSecondLinking, @Nullable
final List<TreasureTreeNode> needSecondLink) {
64 for (
int i = 0; i < getChildCount(); i++) {
66 clone.add(treasureTreeNode.
getClone(processSecondLinking, needSecondLink));
72 boolean hasChildren =
false;
73 for (
int i = 0; i < getChildCount(); i++) {
82 assert needSecondLink !=
null;
83 needSecondLink.add(clone);
121 for (
int i = 0; i < getChildCount(); i++) {
126 final double corrector = 100.0 / sumChances;
129 for (
int i = 0; i < getChildCount(); i++) {