/** * This static factory method creates a new StremaOfFuturesCollector. * * @return A new StreamOfFuturesCollector() */ public static <T> Collector<CompletableFuture<T>, ?, CompletableFuture<Stream<T>>> toFuture() { return new StreamOfFuturesCollector<>(); } }