commit 9ba4c0754ad765b86652a775af45b9bba14b53ec
parent eb09d27914bf44d75e9fe0701124698b0a9219d0
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date: Fri, 13 Dec 2019 18:49:59 +0100
Make group cloneable
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/group.java b/group.java
@@ -2,7 +2,7 @@ package space.nocebo;
import java.lang.Math;
-public class group {
+public class group implements Cloneable {
private acc[] gAccounts = new acc[3];
private int nelem;
private int cmet; // condition met flag - when set conditions are met
@@ -15,6 +15,10 @@ public class group {
tscr = 0.0f;
gid = util.getAlphaNumString();
}
+
+ public Object clone() throws CloneNotSupportedException {
+ return super.clone();
+ }
public synchronized int add(acc m) {
if (nelem < 3) {