From 1e7cdb33f5bfce2d3fb174abd778788108557078 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Mon, 2 May 2011 04:46:00 +0200 Subject: More javadocs for the model git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@64 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/util/Pair.java | 61 +++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 26 deletions(-) (limited to 'src/jrummikub/util') 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 the first type of the pair - * @param the second type of the pair + * + * @param + * Type of first component + * @param + * Type of second component */ public class Pair { - 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; + } } -- cgit v1.2.3