summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/util
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-07 16:59:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-07 16:59:06 +0200
commit244abb7e7320355d0c4aad4a7ba267f11d358563 (patch)
treedd612c5022132d77a9b4f7f1c85f95ce83e2789a /src/jrummikub/util
parentaf3661fea084df6e089c2597dc4b311c77f39e4f (diff)
downloadJRummikub-244abb7e7320355d0c4aad4a7ba267f11d358563.tar
JRummikub-244abb7e7320355d0c4aad4a7ba267f11d358563.zip
Make model fully serializable
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@381 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/util')
-rw-r--r--src/jrummikub/util/Pair.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/jrummikub/util/Pair.java b/src/jrummikub/util/Pair.java
index 91fcbed..80b9ea0 100644
--- a/src/jrummikub/util/Pair.java
+++ b/src/jrummikub/util/Pair.java
@@ -1,14 +1,18 @@
package jrummikub.util;
+import java.io.Serializable;
+
/**
* A pair of objects
*
* @param <T1>
- * Type of first component
+ * Type of first component
* @param <T2>
- * Type of second component
+ * Type of second component
*/
-public class Pair<T1, T2> {
+public class Pair<T1, T2> implements Serializable {
+ private static final long serialVersionUID = 9197464436906172698L;
+
private final T1 first;
private final T2 second;
@@ -16,9 +20,9 @@ public class Pair<T1, T2> {
* Create a new pair from two values
*
* @param first
- * the first pair component
+ * the first pair component
* @param second
- * the second pair component
+ * the second pair component
*/
public Pair(T1 first, T2 second) {
this.first = first;