Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/utils/Pair.java @ 5838:5aa05a7a34b7
Rename modules to more fitting names.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 15:23:37 +0200 |
parents | flys-artifacts/src/main/java/org/dive4elements/river/utils/Pair.java@bd047b71ab37 |
children | 36404dc7fea0 |
comparison
equal
deleted
inserted
replaced
5837:d9901a08d0a6 | 5838:5aa05a7a34b7 |
---|---|
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 org.dive4elements.river.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 @SuppressWarnings("unused") | |
25 private Pair() { | |
26 } | |
27 | |
28 public Pair(A a, B b) { | |
29 this.a = a; | |
30 this.b = b; | |
31 } | |
32 | |
33 public A getA() { | |
34 return a; | |
35 } | |
36 | |
37 public B getB() { | |
38 return b; | |
39 } | |
40 | |
41 public void setA(A a) { | |
42 this.a = a; | |
43 } | |
44 | |
45 public void setB(B b) { | |
46 this.b = b; | |
47 } | |
48 } | |
49 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |