mascoptLib.util
Class Pair

java.lang.Object
  |
  +--mascoptLib.util.Pair

public class Pair
extends Object

Can store two objects in a Pair.

Version:
1.0
Author:
Jean-Francois Lalande (Jean-Francois.Lalande@sophia.inria.fr)

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

Field Detail

key

public Object key
The key.


value

public Object value
The value

Constructor Detail

Pair

public Pair(Object key,
            Object value)
Construct a pair of objects

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

getKey

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

Returns:
an object.

getValue

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

Returns:
an object