org.sonar.api.utils
Class KeyValue<K,V>

java.lang.Object
  extended by org.sonar.api.utils.KeyValue<K,V>

public class KeyValue<K,V>
extends Object

A utility class to store a key / value couple of generic types

Since:
1.10

Constructor Summary
KeyValue(K key, V value)
          Creates a key / value object
 
Method Summary
 K getKey()
           
 V getValue()
           
 void setKey(K key)
          Sets the key of the couple
 void setValue(V value)
          Sets the value of the couple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValue

public KeyValue(K key,
                V value)
Creates a key / value object

Method Detail

getKey

public K getKey()
Returns:
the key of the couple

setKey

public void setKey(K key)
Sets the key of the couple

Parameters:
key - the key

getValue

public V getValue()
Returns:
the value of the couple

setValue

public void setValue(V value)
Sets the value of the couple



Copyright © 2009-2014 SonarSource. All Rights Reserved.