code: public Stream<RangeWithCount> stream() {
          return buckets_.stream()
                  .map(bucket -> new RangeWithCount(bucket.getRange(), bucket.getEvents()));
      }
docs: Returns a map of range -&gt; event count. The elements of the stream are
  a mutable copy of the internal data.