edu.umn.cs.nlp.util
Class Pair<A,B>
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pair
public Pair(A first,
B second)
- Construct a pair of two elements
- Parameters:
first
- the first elementsecond
- the second element
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