Class StreamCloser<T>

java.lang.Object
com.valqueries.StreamCloser<T>
All Implemented Interfaces:
AutoCloseable, BaseStream<T,Stream<T>>, Stream<T>

public class StreamCloser<T> extends Object implements Stream<T>
Stream wrapper that calls close() on terminal operations. Mapping to primitive streams causes the underlying stream to collect to a list and close, as we need to ensure that the underlying resource is closed.