public final class Using<R,T> extends Object implements Stream<T>
CLOSEABLE_CLOSER, DEFAULT_BUFFER_SIZE, DEFAULT_BYTE_BUFFER_SIZE
Constructor and Description |
---|
Using(Callable<? extends R> resourceFactory,
Function<? super R,? extends Stream<? extends T>> streamFactory,
Consumer<? super R> closer) |
Modifier and Type | Method and Description |
---|---|
StreamIterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
all, any, buffer, buffer, bufferUntil, bufferUntil, bufferUntil, bufferUntil, bufferWhile, bufferWhile, bufferWhile, bufferWhile, byteBuffers, byteBuffers, byteBuffers, byteBuffers, bytes, bytes, bytes, bytes, cache, cast, chars, chars, collect, collect, collect, compose, composeMaybe, composeSingle, concatWith, contains, count, create, defer, delayStart, dematerialize, distinct, distinct, distinctUntilChanged, distinctUntilChanged, doAfterDispose, doBeforeDispose, doOnComplete, doOnDispose, doOnEmpty, doOnError, doOnNext, doOnStart, doWithIndex, empty, error, error, every, exists, filter, findFirst, first, flatMap, flatMap, flatMap, flatMapJavaStream, forEach, forEach2, from, from, from, from, from, from, from, fromArray, fromArray, fromArray, fromArray, fromArray, fromArray, fromArray, fromArray, generate, generate, get, go, groupBy, groupByList, groupByList, groupByList, groupBySet, groupBySet, groupBySet, hasElements, ignoreDisposalError, ignoreDisposalError, inputStream, interval, isEmpty, join, last, lines, lines, lines, lines, lines, linesFromResource, linesFromResource, linesFromResource, map, mapWithIndex, mapWithIndex, materialize, max, maybe, merge, mergeWith, min, of, of, of, of, of, of, of, of, ordinals, ordinalsLong, permutations, powerSet, prepend, prepend, prepend, println, printStackTrace, range, rangeLong, reduce, reduce, reduceWithFactory, repeat, repeat, repeatElement, repeatElement, repeatLast, repeatLast, retryWhen, retryWhen, reverse, scan, single, skip, skipUntil, skipWhile, sorted, sorted, split, start, statistics, statistics, strings, strings, strings, sumDouble, sumInt, sumLong, switchOnEmpty, switchOnError, take, takeLast, takeUntil, takeWhile, test, to, toList, toList, toMap, toSet, toSet, toStreamJava, transform, transformMaybe, transformSingle, using, using, zipWith
iteratorNullChecked
forEach, spliterator
public StreamIterator<T> iterator()
Copyright © 2018–2023. All rights reserved.