java.lang.Object
io.jenetics.ext.internal.util.ConcatSpliterator<T>
- All Implemented Interfaces:
Spliterator<T>
This
Spliterator takes a list of other spliterators which are
concatenated and a limiting predicate.- Since:
- 4.1
- Version:
- 6.3
-
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 interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionConcatSpliterator(Collection<Spliterator<T>> spliterators) Create a new concatenating spliterator with the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionintlongbooleantryAdvance(Consumer<? super T> action) trySplit()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
Constructor Details
-
ConcatSpliterator
Create a new concatenating spliterator with the given arguments.- Parameters:
spliterators- the spliterators which are concatenated- Throws:
NullPointerException- if one of the arguments arenull
-
-
Method Details
-
tryAdvance
- Specified by:
tryAdvancein interfaceSpliterator<T>
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<T>
-
estimateSize
- Specified by:
estimateSizein interfaceSpliterator<T>
-
characteristics
- Specified by:
characteristicsin interfaceSpliterator<T>
-