Package org.infinispan.commons.util
Class FlattenSpliterator<E>
- java.lang.Object
-
- org.infinispan.commons.util.FlattenSpliterator<E>
-
- All Implemented Interfaces:
Spliterator<E>
public class FlattenSpliterator<E> extends Object implements Spliterator<E>
Composes an array of Collections into a spliterator. This spliterator will only split up to the collection and will not split the spliterator from the collection itself.- Since:
- 9.3
- Author:
- wburns
-
-
Constructor Summary
Constructors Constructor Description FlattenSpliterator(IntFunction<Collection<E>> toCollection, int length, int additionalCharacteristics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
characteristics()
long
estimateSize()
void
forEachRemaining(Consumer<? super E> action)
boolean
tryAdvance(Consumer<? super E> action)
Spliterator<E>
trySplit()
-
-
-
Constructor Detail
-
FlattenSpliterator
public FlattenSpliterator(IntFunction<Collection<E>> toCollection, int length, int additionalCharacteristics)
-
-