You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
599 B

/*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.util.stream;
import java.util.function.Supplier;
/**
* A {@link Sink} which accumulates state as elements are accepted, and allows
* a result to be retrieved after the computation is finished.
*
* @param <T> the type of elements to be accepted
* @param <R> the type of the result
*
* @since 1.8
*/
interface TerminalSink<T, R> extends Sink<T>, Supplier<R> { }