package edu.neu.ccs.pyramid.util;

/**
 * Created by chengli on 8/19/14.
 */
public class Pair<A,B> {
    private A first;
    private B second;

    public Pair(A first, B second) {
        this.first = first;
        this.second = second;
    }

    public Pair() {
    }

    public A getFirst() {
        return first;
    }

    public Pair<A, B> setFirst(A first) {
        this.first = first;
        return this;
    }

    public B getSecond() {
        return second;
    }

    public Pair<A, B> setSecond(B second) {
        this.second = second;
        return this;
    }

    @Override
    public String toString() {
        return "("+first+", "+second+")";
    }
}

@@ -28,16 +28,46 @@
 .util;%0A%0A
+import java.io.Serializable;%0A%0A
 /**%0A * C
@@ -123,17 +123,93 @@
 ir%3CA,B%3E 
-%7B
+implements Serializable%7B%0A    private static final long serialVersionUID = 1L;
 %0A    pri

make class Pair Serializable