org.sonar.api.utils
Class KeyValue<KEY,VALUE>

java.lang.Object
  extended by org.sonar.api.utils.KeyValue<KEY,VALUE>

public class KeyValue<KEY,VALUE>
extends Object

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

Since:
1.10

Constructor Summary
KeyValue(KEY key, VALUE value)
          Creates a key / value object
 
Method Summary
 KEY getKey()
           
 VALUE getValue()
           
 void setKey(KEY key)
          Sets the key of the couple
 void setValue(VALUE 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(KEY key,
                VALUE value)
Creates a key / value object

Method Detail

getKey

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

setKey

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

Parameters:
key - the key

getValue

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

setValue

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



Copyright © 2009-2011 SonarSource. All Rights Reserved.