Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Pair |
|
| 1.0;1 |
1 | /* | |
2 | This file is part of Combean. | |
3 | ||
4 | Combean is free software; you can redistribute it and/or modify | |
5 | it under the terms of the GNU General Public License as published by | |
6 | the Free Software Foundation; either version 2 of the License, or | |
7 | (at your option) any later version. | |
8 | ||
9 | Combean is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | GNU General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU General Public License | |
15 | along with Combean; if not, write to the Free Software | |
16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
17 | */ | |
18 | /* | |
19 | * Created on 16.01.2005 | |
20 | * | |
21 | */ | |
22 | package net.sourceforge.combean.util; | |
23 | ||
24 | /** | |
25 | * @author schickin | |
26 | * | |
27 | */ | |
28 | public class Pair { | |
29 | ||
30 | Object first; | |
31 | Object second; | |
32 | ||
33 | /** | |
34 | * Construct a pair of Objects | |
35 | * | |
36 | * @param first first object | |
37 | * @param second second object | |
38 | */ | |
39 | public Pair(Object first, Object second) { | |
40 | 156 | super(); |
41 | 156 | this.first = first; |
42 | 156 | this.second = second; |
43 | 156 | } |
44 | ||
45 | /** | |
46 | * @return Returns the first object. | |
47 | */ | |
48 | public final Object getFirst() { | |
49 | 4050 | return this.first; |
50 | } | |
51 | ||
52 | /** | |
53 | * @return Returns the second object. | |
54 | */ | |
55 | public final Object getSecond() { | |
56 | 4050 | return this.second; |
57 | } | |
58 | } |