diff options
Diffstat (limited to 'src/jrummikub/util')
-rw-r--r-- | src/jrummikub/util/Pair.java | 14 |
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; |