diff options
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; + } + + +} |