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