code: private void putDataPoint(int i, Entry<Long, Double> datapoint) {
  		timestamps[i] = datapoint.getKey();
  		values[i] = datapoint.getValue();
  	}
docs: Puts the next data point of an iterator in the next section of internal buffer.
  @param i The index of the iterator.
  @param datapoint The last data point returned by that iterator.