Make model fully serializable

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@381 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Matthias Schiffer 2011-06-07 16:59:06 +02:00
parent af3661fea0
commit 244abb7e73
16 changed files with 119 additions and 86 deletions

View file

@ -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;