T - the object typepublic class StreamIterable<T> extends Object implements CloseableIterable<T>
CloseableIterable which uses
a Stream as the underlying data source.| 构造器和说明 |
|---|
StreamIterable(StreamSupplier<T> streamSupplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
java.util.stream.Stream<T> |
extractStream()
Get a
Stream from the StreamSupplier. |
CloseableIterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic StreamIterable(StreamSupplier<T> streamSupplier)
public void close()
close 在接口中 CloseableIterable<T>close 在接口中 Closeableclose 在接口中 AutoCloseablepublic CloseableIterator<T> iterator()
public java.util.stream.Stream<T> extractStream()
Stream from the StreamSupplier.
This enables the creation of multiple stream objects from the same base data, without operating on the same stream multiple times.
StreamCopyright © 2021. All rights reserved.