Record Class Streamer.HiddenStreamer<T>
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.Streamer.HiddenStreamer<T>
- Type Parameters:
T- the element type of the streamer
- All Implemented Interfaces:
Streamer<T>, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface Streamer
Streamer.HiddenStreamer<T>, Streamer.StreamerFinishViaDisposableContainerCanceller<T>Modifier and TypeInterfaceDescriptionstatic final recordHides the identity of the Streamer for debug or deoptimization purposes.static final recordAugments the base streamer with a canceller so that it can be injected at the various await calls. -
Constructor Summary
ConstructorsConstructorDescriptionHiddenStreamer(@NonNull Streamer<T> streamer) Creates an instance of aHiddenStreamerrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncurrent()Returns the current element ifStreamer.next()yieldedtrue.final booleanIndicates whether some other object is "equal to" this one.finish(@NonNull DisposableContainer cancellation) Called when the stream ends or gets cancelled.final inthashCode()Returns a hash code value for this object.next(@NonNull DisposableContainer cancellation) Determine if there are more elements available from the source.streamer()Returns the value of thestreamerrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface Streamer
awaitFinish, awaitFinish, awaitNext, awaitNext, close, finishVia, hide, nextModifier and TypeMethodDescriptiondefault voidFinish and cleanup the sequence after its completion or cancellation.default voidawaitFinish(@NonNull DisposableContainer cancellation) Who cancels the cancellation attempt? Another cancellation attempt!default booleanMoves and awaits the sequence's next element, returns false if there are no more data.default booleanawaitNext(@NonNull DisposableContainer cancellation) Moves and awaits the sequence's next element, returns false if there are no more data.default voidclose()Make this Streamer a resource and a Closeable, allowing virtually blocking closing.finishVia(@NonNull DisposableContainer canceller) Augments the streamer so that the given canceller is injected into the various lifecycle await calls.hide()Hides the identity of this Streamer for debug or deoptimization purposes.default @NonNull CompletionStage<Boolean> next()Determine if there are more elements available from the source.
-
Constructor Details
-
HiddenStreamer
-
-
Method Details
-
next
@NonNull public @NonNull CompletionStage<Boolean> next(@NonNull @NonNull DisposableContainer cancellation) Description copied from interface:StreamerDetermine if there are more elements available from the source. -
current
Description copied from interface:StreamerReturns the current element ifStreamer.next()yieldedtrue. Can be called multiple times betweenStreamer.next()calls. -
finish
@NonNull public @NonNull CompletionStage<Void> finish(@NonNull @NonNull DisposableContainer cancellation) Description copied from interface:StreamerCalled when the stream ends or gets cancelled. Should be always invoked. TODO, this is inherited fromIAsyncDisposablein C#... -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
streamer
-