code: public void addNextValue(Object val) {
      if (this.numItems <= this.maxNumItems) {
        uniqItems.put(val.toString(), "1");
        this.numItems = this.uniqItems.size();
      }
    }
docs: add a value to the aggregator
  
  @param val
  an object.