From 0ef783407075008514b9e3eb9b32ea67501e4206 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Sat, 30 Apr 2011 15:45:11 +0200 Subject: =?UTF-8?q?Arrays=20zu=20Listen=20ge=C3=A4ndert,=20StoneTray=20Kla?= =?UTF-8?q?sse=20mit=20Sizeable=20Interface=20angelegt,=20Testklassen=20er?= =?UTF-8?q?zeugt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@26 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/util/Pair.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/jrummikub/util/Pair.java (limited to 'src/jrummikub/util') 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 { + 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; + } + + +} -- cgit v1.2.3