Added get methods for the values stored in the pair.

This commit is contained in:
Andreas Dräger 2010-09-06 10:57:11 +00:00
parent e91ff6082f
commit 128c2545e0

View File

@ -86,4 +86,20 @@ public class Pair<S, T> implements Serializable {
public String toString() {
return "(" + head.toString() + "," + tail.toString() + ")";
}
/**
*
* @param head
*/
public void setHead(S head) {
this.head = head;
}
/**
*
* @param tail
*/
public void setTail(T tail) {
this.tail = tail;
}
}