Package org.infinispan.commons.util
Class CloseableSpliteratorMapper<E,S>
- java.lang.Object
-
- org.infinispan.commons.util.SpliteratorMapper<E,S>
-
- org.infinispan.commons.util.CloseableSpliteratorMapper<E,S>
-
- All Implemented Interfaces:
AutoCloseable
,Spliterator<S>
,CloseableSpliterator<S>
@Deprecated public class CloseableSpliteratorMapper<E,S> extends SpliteratorMapper<E,S> implements CloseableSpliterator<S>
Deprecated.since 9.3 users can just useSpliteratorMapper
as it handles CloseableSpliterators nowA spliterator that maps each value to the output of the Function and is also closeable. If the underlying spliterator is closeable, it will also close it- Since:
- 9.0
- Author:
- wburns
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,T_CONS extends Object,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
-
Field Summary
-
Fields inherited from class org.infinispan.commons.util.SpliteratorMapper
mapper, spliterator
-
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
-
Constructor Summary
Constructors Constructor Description CloseableSpliteratorMapper(Spliterator<E> spliterator, Function<? super E,? extends S> mapper)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Spliterator<S>
trySplit()
Deprecated.-
Methods inherited from class org.infinispan.commons.util.SpliteratorMapper
characteristics, estimateSize, forEachRemaining, getExactSizeIfKnown, hasCharacteristics, tryAdvance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Spliterator
characteristics, estimateSize, forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics, tryAdvance
-
-
-
-
Constructor Detail
-
CloseableSpliteratorMapper
public CloseableSpliteratorMapper(Spliterator<E> spliterator, Function<? super E,? extends S> mapper)
Deprecated.
-
-
Method Detail
-
trySplit
public Spliterator<S> trySplit()
Deprecated.- Specified by:
trySplit
in interfaceSpliterator<E>
- Overrides:
trySplit
in classSpliteratorMapper<E,S>
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableSpliterator<E>
- Overrides:
close
in classSpliteratorMapper<E,S>
-
-