edu.umn.cs.nlp.util
Class Pair<A,B>

java.lang.Object
  extended by edu.umn.cs.nlp.util.Pair<A,B>

public class Pair<A,B>
extends Object

Pair of two elements.

Version:
$LastChangedDate: 2007-07-02 14:23:03 -0500 (Mon, 02 Jul 2007) $
Author:
Lane Schwartz

Constructor Summary
Pair(A first, B second)
          Construct a pair of two elements
 
Method Summary
 A getFirst()
           
 B getSecond()
           
 void setFirst(A first)
           
 void setSecond(B second)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A first,
            B second)
Construct a pair of two elements

Parameters:
first - the first element
second - the second element
Method Detail

getFirst

public A getFirst()
Returns:
the first item

setFirst

public void setFirst(A first)
Parameters:
first - the new first item

getSecond

public B getSecond()
Returns:
the second item

setSecond

public void setSecond(B second)
Parameters:
second - the new second item