| Modifier and Type | Field and Description |
|---|---|
| private final DirectoryStream | |
| private final Function |
| Access | Constructor and Description |
|---|---|
| public | MappedDirectoryStream(final DirectoryStream<T>
the delegate stream (must not be delegate, final Function<T, R> null)the mapping function (must not be mappingFunction)null)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public Iterator | iterator()
Implements java. Returns the iterator associated with this |
| delegate | back to summary |
|---|---|
| private final DirectoryStream<T> delegate | |
| mappingFunction | back to summary |
|---|---|
| private final Function<T, R> mappingFunction | |
| MappedDirectoryStream | back to summary |
|---|---|
| public MappedDirectoryStream(final DirectoryStream<T> delegate, final Function<T, R> mappingFunction) Construct a new instance.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns the iterator associated with this
| |