package io.sigpipe.sing.graph;

import java.io.IOException;

import io.sigpipe.sing.serialization.SerializationInputStream;
import io.sigpipe.sing.serialization.SerializationOutputStream;

public class CountContainer extends DataContainer {

    long a;
    long b;

    public CountContainer() {

    }

    public CountContainer(long a, long b) {
        this.a = a;
        this.b = b;
    }

    public void merge(DataContainer container) {
        CountContainer cc = (CountContainer) container;
        this.a += cc.a;
        this.b += cc.b;
    }

    public void clear() {
        this.a = 0;
        this.b = 0;
    }

    @Deserialize
    public CountContainer(SerializationInputStream in)
    throws IOException {
        this.a = in.readLong();
        this.b = in.readLong();
    }

    @Override
    public void serialize(SerializationOutputStream out)
    throws IOException {
        out.writeLong(a);
        out.writeLong(b);
    }

}

@@ -235,24 +235,31 @@
 iner %7B%0A%0A    
+public 
 long a;%0A    
@@ -258,16 +258,23 @@
  a;%0A    
+public 
 long b;%0A

Make countcontainer members public for now