public static interface Linkable.Double
A double primitive specialisation of Linkable.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Linkable.Doublefilter(DoublePredicate predicate) Returns a Linkable.Double that wraps this Linkable.Double and filters values using the provided predicate function.voidlink(DoubleConsumer consumer) Link to a Consumer to process values.default Linkable.Doublemap(DoubleUnaryOperator function) Returns a Linkable.Double that wraps this Linkable.Double and transforms values using the provided mapping function.default <R> Linkable<R> mapTo(DoubleFunction<? extends R> function) Returns a Linkable that wraps this Linkable.Double and transforms values using the provided mapping function.
-
Method Details
-
link
Link to a Consumer to process values. Setting a Consumer completes the pipeline. Only one Consumer may be set on a Linkable pipeline - to use multiple consumers, acquire a new Linkable from the original source.- Parameters:
consumer- function to process received values.
-
map
Returns a Linkable.Double that wraps this Linkable.Double and transforms values using the provided mapping function.- Parameters:
function- transform values- Returns:
-
mapTo
Returns a Linkable that wraps this Linkable.Double and transforms values using the provided mapping function.- Type Parameters:
R- generic type of returned Linkable- Parameters:
function- transform values- Returns:
- Linkable
-
filter
Returns a Linkable.Double that wraps this Linkable.Double and filters values using the provided predicate function.- Parameters:
predicate-- Returns:
-