java.lang.Object
org.jooq.lambda.SeqBuffer<T>
Lazily consumes given
Spliterator
through Seq
s provided by method seq()
.
This method may be called multiple times, and the returned Seq
s may be consumed interchangeably.
Instances of this class ARE thread-safe.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
SpecialSpliterator
whosetryAdvance
method can buffer (i.e. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
source
-
buffer
-
buffering
private volatile boolean bufferingTrue
whilesource
hasn't reported that it's exhausted. This volatile field acts as a memory barrier for the contents ofsource
andbuffer
:
-
-
Constructor Details
-
SeqBuffer
-
-
Method Details
-
of
-
of
-
seq
Returns aSeq
over givensource
. Although suchSeq
is not thread-safe by itself, it interacts in a thread-safe way with its parentSeqBuffer
. As a result, eachSeq
returned by this method can be safely used on a different thread.
-