--- a/jdk/src/share/classes/java/util/stream/Stream.java Tue Aug 06 16:01:39 2013 -0700
+++ b/jdk/src/share/classes/java/util/stream/Stream.java Fri Jun 28 16:26:54 2013 -0400
@@ -651,12 +651,13 @@
* }</pre>
*
* @param <R> the type of the result
+ * @param <A> the intermediate accumulation type of the {@code Collector}
* @param collector the {@code Collector} describing the reduction
* @return the result of the reduction
* @see #collect(Supplier, BiConsumer, BiConsumer)
* @see Collectors
*/
- <R> R collect(Collector<? super T, R> collector);
+ <R, A> R collect(Collector<? super T, A, ? extends R> collector);
/**
* Returns the minimum element of this stream according to the provided