Package org.apache.commons.io.function
Class UncheckedIOSpliterator<T>
java.lang.Object
org.apache.commons.io.function.UncheckedIOSpliterator<T>
- Type Parameters:
T
- the type of elements returned by this iterator.
- All Implemented Interfaces:
Spliterator<T>
A
Spliterator
for an IOSpliterator
that throws UncheckedIOException
instead of
IOException
.
Keep package-private for now.-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,
T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
FieldsFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
long
void
forEachRemaining
(Consumer<? super T> action) Comparator
<? super T> long
boolean
hasCharacteristics
(int characteristics) boolean
tryAdvance
(Consumer<? super T> action) trySplit()
-
Field Details
-
delegate
-
-
Constructor Details
-
UncheckedIOSpliterator
UncheckedIOSpliterator(IOSpliterator<T> delegate)
-
-
Method Details
-
characteristics
public int characteristics()- Specified by:
characteristics
in interfaceSpliterator<T>
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<T>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceSpliterator<T>
-
getComparator
- Specified by:
getComparator
in interfaceSpliterator<T>
-
getExactSizeIfKnown
public long getExactSizeIfKnown()- Specified by:
getExactSizeIfKnown
in interfaceSpliterator<T>
-
hasCharacteristics
public boolean hasCharacteristics(int characteristics) - Specified by:
hasCharacteristics
in interfaceSpliterator<T>
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator<T>
-
trySplit
- Specified by:
trySplit
in interfaceSpliterator<T>
-