diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-04-30 15:45:11 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-04-30 15:45:11 +0200 |
commit | 0ef783407075008514b9e3eb9b32ea67501e4206 (patch) | |
tree | 38c3ea0dcb950b88e7e08c67d6bbad57b9e73e38 /src/jrummikub/util | |
parent | 59e6d9c45174b06140175b3ea35d47e0eb1651d9 (diff) | |
download | JRummikub-0ef783407075008514b9e3eb9b32ea67501e4206.tar JRummikub-0ef783407075008514b9e3eb9b32ea67501e4206.zip |
Arrays zu Listen geƤndert, StoneTray Klasse mit Sizeable Interface angelegt, Testklassen erzeugt
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@26 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/util')
-rw-r--r-- | src/jrummikub/util/Pair.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/jrummikub/util/Pair.java b/src/jrummikub/util/Pair.java new file mode 100644 index 0000000..95af113 --- /dev/null +++ b/src/jrummikub/util/Pair.java @@ -0,0 +1,24 @@ +package jrummikub.util; + +/** + * A pair of objects + */ +public class Pair<T1, T2> { + final T1 first; + final T2 second; + + public Pair(T1 first, T2 second) { + this.first = first; + this.second = second; + } + + public T1 getFirst() { + return first; + } + + public T2 getSecond() { + return second; + } + + +} |