Class UnfoldSpliterator<T>

java.lang.Object
org.tquadrat.foundation.stream.internal.UnfoldSpliterator<T>
Type Parameters:
T - The type of the stream elements.
All Implemented Interfaces:
Spliterator<T>

@ClassVersion(sourceVersion="$Id: UnfoldSpliterator.java 1060 2023-09-24 19:21:40Z tquadrat $") @API(status=INTERNAL, since="0.0.7") public final class UnfoldSpliterator<T> extends Object implements Spliterator<T>
An implementation of Spliterator that which takes a seed value and applies a generator to create the next value, feeding each new value back into the generator to create subsequent values. If the generator returns Optional.empty(), then there are no more values.
Author:
Dominic Fox
Modified by:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: UnfoldSpliterator.java 1060 2023-09-24 19:21:40Z tquadrat $
Since:
0.0.7
UML Diagram
UML Diagram for "org.tquadrat.foundation.stream.internal.UnfoldSpliterator"

UML Diagram for "org.tquadrat.foundation.stream.internal.UnfoldSpliterator"

UML Diagram for "org.tquadrat.foundation.stream.internal.UnfoldSpliterator"