/*
 *  Copyright 2011 Eric F. Savage, code@efsavage.com
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
package com.ajah.util.lang;

import java.util.Map;

/**
 * Simple bean to represent a name/value pair. Useful where a {@link Map} is not
 * the best choice.
 * 
 * @author <a href="http://efsavage.com">Eric F. Savage</a>, <a
 *         href="mailto:code@efsavage.com">code@efsavage.com</a>.
 * @param <T>
 *            The type of the value.
 */
public class NameValuePair<T> {

	private String name;

	private T value;

	/**
	 * Constructs this bean with the two fields. Either field may be null.
	 * 
	 * @param name
	 *            The name of the object/value, may be null.
	 * @param value
	 *            The object/value, may be null.
	 */
	public NameValuePair(final String name, final T value) {
		this.name = name;
		this.value = value;
	}

	/**
	 * Returns the name of the object/value.
	 * 
	 * @return The name of the object/value.
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Returns the object/value.
	 * 
	 * @return The object/value.
	 */
	public T getValue() {
		return this.value;
	}

	/**
	 * Sets the name of the object/value.
	 * 
	 * @param name
	 *            The name of the object/value.
	 */
	public void setName(final String name) {
		this.name = name;
	}

	/**
	 * Sets the object/value.
	 * 
	 * @param value
	 *            The object/value.
	 */
	public void setValue(final T value) {
		this.value = value;
	}

}

@@ -681,16 +681,37 @@
 l.Map;%0A%0A
+import lombok.Data;%0A%0A
 /**%0A * S
@@ -809,17 +809,58 @@
 oice.%0A *
- 
+%0A * @param %3CT%3E%0A * %09%09The type of the value.
 %0A * @aut
@@ -916,22 +916,14 @@
 /a%3E,
- %3Ca
 %0A * 
-       
+%3Ca
  hre
@@ -980,60 +980,15 @@
 .%0A *
- @param %3CT%3E%0A *            The type of the value.%0A */
+/%0A@Data
 %0Apub
@@ -1135,25 +1135,24 @@
 be null.%0A%09 *
- 
 %0A%09 * @param 
@@ -1156,35 +1156,26 @@
 am name%0A%09 * 
-           
+%09%09
 The name of 
@@ -1222,35 +1222,26 @@
 m value%0A%09 * 
-           
+%09%09
 The object/v
@@ -1410,33 +1410,32 @@
 bject/value.%0A%09 *
- 
 %0A%09 * @return The
@@ -1551,25 +1551,24 @@
 t/value.%0A%09 *
- 
 %0A%09 * @return
@@ -1678,33 +1678,32 @@
 bject/value.%0A%09 *
- 
 %0A%09 * @param name
@@ -1703,35 +1703,26 @@
 am name%0A%09 * 
-           
+%09%09
 The name of 
@@ -1845,17 +1845,16 @@
 lue.%0A%09 *
- 
 %0A%09 * @pa
@@ -1867,27 +1867,18 @@
 lue%0A%09 * 
-           
+%09%09
 The obje

Add @Data