summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/util
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-02 04:46:00 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-02 04:46:00 +0200
commit1e7cdb33f5bfce2d3fb174abd778788108557078 (patch)
tree7ef56ce60b813402eabff2bc1aee77ba6142cbd8 /src/jrummikub/util
parent91b921248f4a74bddd8434bcad65c45fd8486549 (diff)
downloadJRummikub-1e7cdb33f5bfce2d3fb174abd778788108557078.tar
JRummikub-1e7cdb33f5bfce2d3fb174abd778788108557078.zip
More javadocs for the model
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@64 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/util')
-rw-r--r--src/jrummikub/util/Pair.java61
1 files changed, 35 insertions, 26 deletions
diff --git a/src/jrummikub/util/Pair.java b/src/jrummikub/util/Pair.java
index 76eea4f..7083bc3 100644
--- a/src/jrummikub/util/Pair.java
+++ b/src/jrummikub/util/Pair.java
@@ -2,36 +2,45 @@ package jrummikub.util;
/**
* A pair of objects
- * @param <T1> the first type of the pair
- * @param <T2> the second type of the pair
+ *
+ * @param <T1>
+ * Type of first component
+ * @param <T2>
+ * Type of second component
*/
public class Pair<T1, T2> {
- private final T1 first;
- private 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;
- }
+ /**
+ * Create a new pair from two values
+ *
+ * @param first
+ * the first pair component
+ * @param second
+ * the second pair component
+ */
+ public Pair(T1 first, T2 second) {
+ this.first = first;
+ this.second = second;
+ }
- /**
- * @return the first value
- */
- public T1 getFirst() {
- return first;
- }
+ /**
+ * Extract the first component of a pair
+ *
+ * @return the first pair component
+ */
+ public T1 getFirst() {
+ return first;
+ }
- /**
- * @return the first value
- */
- public T2 getSecond() {
- return second;
- }
+ /**
+ * Extract the second component of a pair
+ *
+ * @return the second pair component
+ */
+ public T2 getSecond() {
+ return second;
+ }
}