Added get methods for the values stored in the pair.
This commit is contained in:
parent
e91ff6082f
commit
128c2545e0
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user