public BitmapCounter(BitmapCounter another) { merge(another); }
@Override public void aggregate(BitmapCounter value) { if (sum == null) { sum = new BitmapCounter(value); } else { sum.merge(value); } }
public static BitmapCounter add(BitmapCounter counter, Object v) { BitmapCounter c = (BitmapCounter) v; if (counter == null) { return new BitmapCounter(c); } else { counter.merge(c); return counter; } }