Package org.apache.commons.io.function
Class IOSpliteratorAdapter<T>
java.lang.Object
org.apache.commons.io.function.IOSpliteratorAdapter<T>
- Type Parameters:
T- the type of the stream elements.
- All Implemented Interfaces:
IOSpliterator<T>
Adapts an
Spliterator as an IOSpliterator.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <E> IOSpliteratorAdapter<E>adapt(Spliterator<E> delegate) Adapts the given Spliterator as an IOSpliterator.unwrap()Unwraps this instance and returns the underlyingSpliterator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSpliterator
asSpliterator, characteristics, estimateSize, forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, tryAdvance, trySplit
-
Field Details
-
delegate
-
-
Constructor Details
-
IOSpliteratorAdapter
IOSpliteratorAdapter(Spliterator<T> delegate)
-
-
Method Details
-
adapt
Description copied from interface:IOSpliteratorAdapts the given Spliterator as an IOSpliterator.- Type Parameters:
E- the type of the stream elements.- Parameters:
delegate- The iterator to adapt- Returns:
- A new IOSpliterator
-
unwrap
Description copied from interface:IOSpliteratorUnwraps this instance and returns the underlyingSpliterator.Implementations may not have anything to unwrap and that behavior is undefined for now.
- Specified by:
unwrapin interfaceIOSpliterator<T>- Returns:
- the underlying Spliterator.
-