Uses of Interface
org.osgi.util.function.Consumer
-
Packages that use Consumer Package Description org.osgi.util.function Function Package Version 1.2.org.osgi.util.promise Promise Package Version 1.2. -
-
Uses of Consumer in org.osgi.util.function
Methods in org.osgi.util.function that return Consumer Modifier and Type Method Description default Consumer<T>
Consumer. andThen(Consumer<? super T> after)
Compose the specifiedConsumer
to be called after thisConsumer
.static <T> Consumer<T>
Consumer. asConsumer(java.util.function.Consumer<T> wrapped)
Returns aConsumer
which wraps ajava.util.function.Consumer
.Methods in org.osgi.util.function with parameters of type Consumer Modifier and Type Method Description default Consumer<T>
Consumer. andThen(Consumer<? super T> after)
Compose the specifiedConsumer
to be called after thisConsumer
.static <T> java.util.function.Consumer<T>
Consumer. asJavaConsumer(Consumer<T> wrapped)
Returns ajava.util.function.Consumer
which wraps the specifiedConsumer
and throws any thrown exceptions.static <T> java.util.function.Consumer<T>
Consumer. asJavaConsumerIgnoreException(Consumer<T> wrapped)
Returns ajava.util.function.Consumer
which wraps the specifiedConsumer
and discards any thrownException
s. -
Uses of Consumer in org.osgi.util.promise
Methods in org.osgi.util.promise with parameters of type Consumer Modifier and Type Method Description Promise<T>
Promise. onFailure(Consumer<? super java.lang.Throwable> failure)
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.Promise<T>
Promise. onSuccess(Consumer<? super T> success)
Register a callback to be called with the result of this Promise when this Promise is resolved successfully.Promise<T>
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.
-