/* * 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 the type of elements to be accepted * @param the type of the result * * @since 1.8 */ interface TerminalSink extends Sink, Supplier { }