EGF Engine
Release 0.1.0

org.eclipse.egf.common.misc
Class Couple<K,V>

java.lang.Object
  extended by org.eclipse.egf.common.misc.Couple<K,V>
All Implemented Interfaces:
Cloneable

public class Couple<K,V>
extends Object
implements Cloneable

Key, value object.


Constructor Summary
Couple(K key_p, V value_p)
          Constructor.
 
Method Summary
 Couple<K,V> clone()
           
 K getKey()
          Get key.
 V getValue()
          Get value.
 void setKey(K key_p)
          Set key with given value.
 void setValue(V value_p)
          Set value with given value.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Couple

public Couple(K key_p,
              V value_p)
Constructor.

Parameters:
key_p -
value_p -
Method Detail

getKey

public K getKey()
Get key.

Returns:
K

getValue

public V getValue()
Get value.

Returns:
V

setKey

public void setKey(K key_p)
Set key with given value.

Parameters:
key_p - key to set. void

setValue

public void setValue(V value_p)
Set value with given value.

Parameters:
value_p - the value to set

clone

public Couple<K,V> clone()
Overrides:
clone in class Object
See Also:
Object.clone()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.