Package | Description |
---|---|
org.osgi.util.function |
Function Package Version 1.2.
|
org.osgi.util.promise |
Promise Package Version 1.2.
|
Modifier and Type | Method and Description |
---|---|
default Consumer<T> |
Consumer.andThen(Consumer<? super T> after)
Compose the specified
Consumer to be called after this
Consumer . |
static <T> Consumer<T> |
Consumer.asConsumer(Consumer<T> wrapped)
Returns a
Consumer which wraps a
java.util.function.Consumer . |
Modifier and Type | Method and Description |
---|---|
default Consumer<T> |
Consumer.andThen(Consumer<? super T> after)
Compose the specified
Consumer to be called after this
Consumer . |
static <T> Consumer<T> |
Consumer.asJavaConsumer(Consumer<T> wrapped)
Returns a
java.util.function.Consumer which wraps the specified
Consumer and throws any thrown exceptions. |
static <T> Consumer<T> |
Consumer.asJavaConsumerIgnoreException(Consumer<T> wrapped)
Returns a
java.util.function.Consumer which wraps the specified
Consumer and discards any thrown Exception s. |
Modifier and Type | Method and Description |
---|---|
Promise<T> |
Promise.onFailure(Consumer<? super 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.
|
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0