jdk/src/share/classes/java/util/stream/Stream.java
changeset 19799 efa9ff09b024
parent 19214 e5901820c3c1
child 19800 6e1fef53ea55
equal deleted inserted replaced
19798:b627a06c30ed 19799:efa9ff09b024
   655      * @param collector the {@code Collector} describing the reduction
   655      * @param collector the {@code Collector} describing the reduction
   656      * @return the result of the reduction
   656      * @return the result of the reduction
   657      * @see #collect(Supplier, BiConsumer, BiConsumer)
   657      * @see #collect(Supplier, BiConsumer, BiConsumer)
   658      * @see Collectors
   658      * @see Collectors
   659      */
   659      */
   660     <R, A> R collect(Collector<? super T, A, ? extends R> collector);
   660     <R, A> R collect(Collector<? super T, A, R> collector);
   661 
   661 
   662     /**
   662     /**
   663      * Returns the minimum element of this stream according to the provided
   663      * Returns the minimum element of this stream according to the provided
   664      * {@code Comparator}.  This is a special case of a
   664      * {@code Comparator}.  This is a special case of a
   665      * <a href="package-summary.html#MutableReduction">reduction</a>.
   665      * <a href="package-summary.html#MutableReduction">reduction</a>.