T - the type of the stream elements.final class IOSpliteratorAdapter<T> extends Object implements IOSpliterator<T>
Spliterator as an IOSpliterator.| Constructor and Description |
|---|
IOSpliteratorAdapter(Spliterator<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static <E> IOSpliteratorAdapter<E> |
adapt(Spliterator<E> delegate)
Adapts the given Spliterator as an IOSpliterator.
|
Spliterator<T> |
unwrap()
Unwraps this instance and returns the underlying
Spliterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasSpliterator, characteristics, estimateSize, forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, tryAdvance, trySplitIOSpliteratorAdapter(Spliterator<T> delegate)
static <E> IOSpliteratorAdapter<E> adapt(Spliterator<E> delegate)
IOSpliteratoradapt in interface IOSpliterator<T>E - the type of the stream elements.delegate - The iterator to adaptpublic Spliterator<T> unwrap()
IOSpliteratorSpliterator.
Implementations may not have anything to unwrap and that behavior is undefined for now.
unwrap in interface IOSpliterator<T>