comparison artifacts-common/src/main/java/de/intevation/artifacts/common/model/KVP.java @ 388:156904aa7c85

Added a class to store generic keys and values. artifacts/trunk@4404 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 15 May 2012 07:05:20 +0000
parents
children
comparison
equal deleted inserted replaced
387:111d4e28c45e 388:156904aa7c85
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 package de.intevation.artifacts.common.model;
9
10
11 public class KVP<K, V> {
12
13 private K key;
14 private V value;
15
16
17 public KVP(K key, V value) {
18 this.key = key;
19 this.value = value;
20 }
21
22
23 public K getKey() {
24 return key;
25 }
26
27
28 public V getValue() {
29 return value;
30 }
31 }
32 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org