diff --git a/src/main/java/com/vectron/fcl/FclStack.java b/src/main/java/com/vectron/fcl/FclStack.java index f2c4737..7103300 100644 --- a/src/main/java/com/vectron/fcl/FclStack.java +++ b/src/main/java/com/vectron/fcl/FclStack.java @@ -102,4 +102,15 @@ public class FclStack { private String fileName(String id) { return String.format("stack%s.json", id); } + + public void populate(FclStack other) { + stack.clear(); + stack.addAll(other.stack); + } + + public FclStack copy() { + FclStack copy = new FclStack(); + copy.populate(this); + return copy; + } }