---
title: "KeyValuePair2"
author: "vernonchen163"
date: "2015-05-19T15:44:50Z"
tags: []
categories: ["非技术"]
slug: "keyvaluepair2"
draft: false
lastmod: "2014-05-22T09:36:20Z"
id: 2069484
url: "https://vernonchen163.iteye.com/blog/2069484"
---

/**
 * 键值对
 * 
 * @author vernon.chen
 * 
 */
public class KeyValuePair2<K, V> {

	private static Logger	logger	= LoggerFactory.getLogger(KeyValuePair2.class);

	private K				key;

	private V				value;

	public KeyValuePair2() {
		super();
	}

	public KeyValuePair2(K key, V value) {
		super();
		this.key = key;
		this.value = value;
	}

	public K getKey() {
		return key;
	}

	public void setKey(K key) {
		this.key = key;
	}

	public V getValue() {
		return value;
	}

	public void setValue(V value) {
		this.value = value;
	}

	public static void main(String[] args) {
		KeyValuePair2<String, String> kv2 = new KeyValuePair2<String, String>();
		kv2.setKey("key");
		kv2.setValue("value");

		logger.debug(kv2.getKey());
		logger.debug(kv2.getValue());

	}
}