From 244abb7e7320355d0c4aad4a7ba267f11d358563 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 7 Jun 2011 16:59:06 +0200 Subject: Make model fully serializable git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@381 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/util/Pair.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/jrummikub/util') 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 - * Type of first component + * Type of first component * @param - * Type of second component + * Type of second component */ -public class Pair { +public class Pair implements Serializable { + private static final long serialVersionUID = 9197464436906172698L; + private final T1 first; private final T2 second; @@ -16,9 +20,9 @@ public class Pair { * 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; -- cgit v1.2.3