*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
import java.util.concurrent.*;
import java.io.*;
-public class AltosMag implements Cloneable, AltosHashable, AltosJsonable {
+public class AltosMag implements Cloneable {
public int along;
public int across;
public int through;
break;
}
}
-
- public AltosHashSet hashSet() {
- AltosHashSet h = new AltosHashSet();
-
- h.putInt("along", along);
- h.putInt("across", across);
- h.putInt("through", through);
- return h;
- }
-
- public AltosJson json() {
- AltosJson j = new AltosJson();
-
- j.put("along", along);
- j.put("across", across);
- j.put("through", through);
- return j;
- }
-
- public AltosMag(AltosHashSet h) {
- this();
-
- along = h.getInt("along", along);
- across = h.getInt("across", across);
- through = h.getInt("through", through);
- }
-
- public static AltosMag fromHashSet(AltosHashSet h, AltosMag def) {
- if (h == null)
- return def;
-
- return new AltosMag(h);
- }
-
- public AltosMag(AltosJson j) {
- this();
-
- along = j.get_int("along", along);
- across = j.get_int("across", across);
- through = j.get_int("through", through);
- }
-
- public static AltosMag fromJson(AltosJson j, AltosMag def) {
- if (j == null)
- return def;
-
- return new AltosMag(j);
- }
}