mirror of
https://github.com/zeroflag/fcl.git
synced 2025-01-11 20:01:10 +01:00
undo redo proto
This commit is contained in:
parent
b20ef173df
commit
1b94ee5305
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue