Uses of Interface
org.osgi.util.function.Function
Package
Description
Converter Package Version 1.0.
Function Package Version 1.2.
Promise Package Version 1.3.
Push Stream Package Version 1.1.
-
Uses of Function in org.osgi.util.converter
Modifier and TypeMethodDescriptionSpecify the target object type for the conversion as a class object.Specify the target object type as a Java Reflection Type object.Functioning.to
(TypeReference<T> ref) Specify the target object type as aTypeReference
. -
Uses of Function in org.osgi.util.function
Modifier and TypeMethodDescriptionCompose the specifiedFunction
to be called on the value returned by thisFunction
.static <T,
R> Function<T, R> Function.asFunction
(Function<T, R> wrapped) Returns aFunction
which wraps the specifiedjava.util.function.Function
.Compose the specifiedFunction
to be called to supply a value to be consumed by thisFunction
.Modifier and TypeMethodDescriptionCompose the specifiedFunction
to be called on the value returned by thisFunction
.static <T,
R> Function<T, R> Function.asJavaFunction
(Function<T, R> wrapped) Returns ajava.util.function.Function
which wraps the specifiedFunction
and throws any thrown exceptions.static <T,
R> Function<T, R> Function.asJavaFunctionOrElse
(Function<T, R> wrapped, R orElse) Returns ajava.util.function.Function
which wraps the specifiedFunction
and the specified value.static <T,
R> Function<T, R> Function.asJavaFunctionOrElseGet
(Function<T, R> wrapped, Supplier<? extends R> orElseGet) Returns ajava.util.function.Function
which wraps the specifiedFunction
and the specifiedjava.util.function.Supplier
.Compose the specifiedFunction
to be called to supply a value to be consumed by thisFunction
. -
Uses of Function in org.osgi.util.promise
Modifier and TypeMethodDescription<R> Promise<R>
FlatMap the value of this Promise.<R> Promise<R>
Map the value of this Promise.Recover from a failure of this Promise with a recovery value.Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.Promise.recoverWith
(Function<Promise<?>, Promise<? extends T>> recovery) Recover from a failure of this Promise with a recovery Promise.Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type. -
Uses of Function in org.osgi.util.pushstream
Modifier and TypeMethodDescription<R> PushStream<R>
Asynchronously map the payload values.<R> PushStream<R>
PushStream.coalesce
(int count, Function<Collection<T>, R> f) Coalesces a number of events into a new type of event.<R> PushStream<R>
PushStream.coalesce
(IntSupplier count, Function<Collection<T>, R> f) Coalesces a number of events into a new type of event.<R> PushStream<R>
Coalesces a number of events into a new type of event.<R> PushStream<R>
PushStream.flatMap
(Function<? super T, ? extends PushStream<? extends R>> mapper) Flat map the payload value (turn one event into 0..n events of potentially another type).<R> PushStream<R>
Map a payload value.<R> PushStream<R>
Buffers a number of events over a fixed time interval and then forwards the events to an accumulator function.<R> PushStream<R>
PushStream.window
(Duration d, Function<Collection<T>, R> f) Buffers a number of events over a fixed time interval and then forwards the events to an accumulator function.