Package io.reactivex.rxjava3.functions
Interface Consumer<T>
-
- Type Parameters:
T- the value type
- All Known Implementing Classes:
BlockingIgnoringReceiver,ConnectConsumer,FlowableGroupBy.EvictionAction,FlowableInternalHelper.RequestMax,FlowableInternalHelper.SubscriberOnError,FlowableInternalHelper.SubscriberOnNext,FlowableOnBackpressureDrop,FlowableRefCount.RefConnection,FlowableReplay.MulticastFlowable.DisposableConsumer,Functions.ActionConsumer,Functions.BoundedConsumer,Functions.EmptyConsumer,Functions.ErrorConsumer,Functions.MaxRequestSubscription,Functions.NotificationOnError,Functions.NotificationOnNext,Functions.OnErrorMissingConsumer,ObservableInternalHelper.ObserverOnError,ObservableInternalHelper.ObserverOnNext,ObservableRefCount.RefConnection,ObservableReplay.DisposeConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Consumer<@NonNull T>A functional interface (callback) that accepts a single value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(@NonNull T t)Consume the given value.
-