fr.inria.opengve.tools.dataStructures
Class Pair<K,V>

java.lang.Object
  extended by fr.inria.opengve.tools.dataStructures.Pair<K,V>

public class Pair<K,V>
extends java.lang.Object

Can store two objects in a Pair.

Author:
Jean-Francois Lalande (Jean-Francois.Lalande@sophia.inria.fr), fabrice.peix@sophia.inria.fr

Constructor Summary
Pair(K key, V value)
          Construct a pair of objects.
 
Method Summary
 K getKey()
          Return the first part of the pair.
 V getValue()
          Return the second part of the pair.
 java.lang.String toString()
          }
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(K key,
            V value)
Construct a pair of objects.

Parameters:
key - the first object
value - the second object
Method Detail

getKey

public K getKey()
Return the first part of the pair.

Returns:
an object.

getValue

public V getValue()
Return the second part of the pair.

Returns:
an object

toString

public java.lang.String toString()
}

Overrides:
toString in class java.lang.Object


Copyright © 2009 INRIA (Projet Mascotte). All Rights Reserved.