code: public int[] get() {
  		if (capacity < buffer.size()) {
  			capacity = buffer.size();
  		}
  		int[] res = buffer.toArray();
  		buffer.clear(capacity);
  		return res;
  	}
docs: Resets the builder by the way
  @return an array containing latest items added.