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 useSpliteratorMapperas 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 voidclose()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:
trySplitin interfaceSpliterator<E>- Overrides:
trySplitin classSpliteratorMapper<E,S>
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableSpliterator<E>- Overrides:
closein classSpliteratorMapper<E,S>
-
-