package com.flightstats.util;

import java.util.stream.IntStream;
import java.util.stream.Stream;

public class Streams {

    /**
     * Generates a Stream of nulls, with as many entries as you specify. Useful for doing parallel "loops" like this:
     * <code>
     *     times(1000).parallel().map(x -> generateSomethingComputationallyExpensive());
     * </code>
     * or:
     * <code>
     *     times(1000).parallel().forEach(x -> doSomethingComputationallyExpensive());
     * </code>
     */
    @SuppressWarnings("RedundantCast")
    public static Stream<Void> times(int number) {
        return IntStream.range(0, number).mapToObj(i -> (Void) null);
    }


}

@@ -297,17 +297,20 @@
 .map(x -
-%3E
+&gt;
  generat
@@ -433,17 +433,20 @@
 Each(x -
-%3E
+&gt;
  doSomet

update javadoc to be valid