Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/utils/Pair.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.utils; | |
10 | |
11 import java.io.Serializable; | |
12 | |
13 /** | |
14 * @param <A> | |
15 * @param <B> | |
16 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | |
17 */ | |
18 public final class Pair<A, B> | |
19 implements Serializable | |
20 { | |
21 private A a; | |
22 private B b; | |
23 | |
24 private Pair() { | |
25 } | |
26 | |
27 public Pair(A a, B b) { | |
28 this.a = a; | |
29 this.b = b; | |
30 } | |
31 | |
32 public A getA() { | |
33 return a; | |
34 } | |
35 | |
36 public B getB() { | |
37 return b; | |
38 } | |
39 } | |
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |