Uses of Interface
org.osgi.util.function.Consumer
Packages that use Consumer
Package
Description
Function Package Version 1.2.
Promise Package Version 1.3.
-
Uses of Consumer in org.osgi.util.function
Methods in org.osgi.util.function that return ConsumerModifier and TypeMethodDescriptionCompose the specifiedConsumerto be called after thisConsumer.static <T> Consumer<T>Consumer.asConsumer(Consumer<T> wrapped) Returns aConsumerwhich wraps ajava.util.function.Consumer.Methods in org.osgi.util.function with parameters of type ConsumerModifier and TypeMethodDescriptionCompose the specifiedConsumerto be called after thisConsumer.static <T> Consumer<T>Consumer.asJavaConsumer(Consumer<T> wrapped) Returns ajava.util.function.Consumerwhich wraps the specifiedConsumerand throws any thrown exceptions.static <T> Consumer<T>Consumer.asJavaConsumerIgnoreException(Consumer<T> wrapped) Returns ajava.util.function.Consumerwhich wraps the specifiedConsumerand discards any thrownExceptions. -
Uses of Consumer in org.osgi.util.promise
Methods in org.osgi.util.promise with parameters of type ConsumerModifier and TypeMethodDescriptionRegister a callback to be called with the failure for this Promise when this Promise is resolved with a failure of a failure type.Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.Register a callback to be called with the result of this Promise when this Promise is resolved successfully.Promise.thenAccept(Consumer<? super T> consumer) Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.