*
* @since 1.10
*/
-public class KeyValue<KEY, VALUE> {
+public class KeyValue<K, V> {
- private KEY key;
- private VALUE value;
+ private K key;
+ private V value;
/**
* Creates a key / value object
*/
- public KeyValue(KEY key, VALUE value) {
+ public KeyValue(K key, V value) {
super();
this.key = key;
this.value = value;
/**
* @return the key of the couple
*/
- public KEY getKey() {
+ public K getKey() {
return key;
}
*
* @param key the key
*/
- public void setKey(KEY key) {
+ public void setKey(K key) {
this.key = key;
}
*
* @return the value of the couple
*/
- public VALUE getValue() {
+ public V getValue() {
return value;
}
/**
* Sets the value of the couple
*/
- public void setValue(VALUE value) {
+ public void setValue(V value) {
this.value = value;
}