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
-
-
Field Summary
-
Fields inherited from class org.infinispan.commons.util.SpliteratorMapper
mapper, spliterator
-
-
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
-
-
-
-
Constructor Detail
-
CloseableSpliteratorMapper
public CloseableSpliteratorMapper(Spliterator<E> spliterator, Function<? super E,? extends S> mapper)
Deprecated.
-
-
Method Detail
-
trySplit
public Spliterator<S> trySplit()
Deprecated.- Overrides:
trySplit
in classSpliteratorMapper<E,S>
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceCloseableSpliterator<E>
- Overrides:
close
in classSpliteratorMapper<E,S>
-
-