undo redo proto

This commit is contained in:
zeroflag 2021-08-13 12:37:16 +02:00
parent b20ef173df
commit 1b94ee5305

View file

@ -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;
}
}