diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-02 04:19:39 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-02 04:19:39 +0200 |
commit | 91b921248f4a74bddd8434bcad65c45fd8486549 (patch) | |
tree | 69ff1e36447410e367518ecfafa4d99bd9198a52 /src/jrummikub/util | |
parent | e39dc98249e5b71892b4dca0fc0f5ca5e16740a6 (diff) | |
download | JRummikub-91b921248f4a74bddd8434bcad65c45fd8486549.tar JRummikub-91b921248f4a74bddd8434bcad65c45fd8486549.zip |
More view JavaDoc
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@63 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/util')
-rw-r--r-- | src/jrummikub/util/Pair.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/jrummikub/util/Pair.java b/src/jrummikub/util/Pair.java index 5fb8589..76eea4f 100644 --- a/src/jrummikub/util/Pair.java +++ b/src/jrummikub/util/Pair.java @@ -2,20 +2,34 @@ package jrummikub.util; /** * A pair of objects + * @param <T1> the first type of the pair + * @param <T2> the second type of the pair */ public class Pair<T1, T2> { - final T1 first; - final T2 second; + private final T1 first; + private final T2 second; + /** + * Create a new pair + * + * @param first the first value + * @param second the second value + */ public Pair(T1 first, T2 second) { this.first = first; this.second = second; } + /** + * @return the first value + */ public T1 getFirst() { return first; } + /** + * @return the first value + */ public T2 getSecond() { return second; } |