changeset 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 111d4e28c45e
children ea263ee87563
files ChangeLog artifacts-common/src/main/java/de/intevation/artifacts/common/model/KVP.java
diffstat 2 files changed, 37 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 07 13:30:08 2012 +0000
+++ b/ChangeLog	Tue May 15 07:05:20 2012 +0000
@@ -1,3 +1,8 @@
+2012-05-15  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifacts-common/src/main/java/de/intevation/artifacts/common/model/KVP.java:
+	  New class to store generic keys and values.
+
 2012-05-07  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* artifacts-common/src/main/java/de/intevation/artifacts/common/utils/XMLUtils.java:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts-common/src/main/java/de/intevation/artifacts/common/model/KVP.java	Tue May 15 07:05:20 2012 +0000
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2010 by Intevation GmbH
+ *
+ * This program is free software under the LGPL (>=v2.1)
+ * Read the file LGPL.txt coming with the software for details
+ * or visit http://www.gnu.org/licenses/ if it does not exist.
+ */
+package de.intevation.artifacts.common.model;
+
+
+public class KVP<K, V> {
+
+    private K key;
+    private V value;
+
+
+    public KVP(K key, V value) {
+        this.key   = key;
+        this.value = value;
+    }
+
+
+    public K getKey() {
+        return key;
+    }
+
+
+    public V getValue() {
+        return value;
+    }
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org