-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Linkable.Double
filter(DoublePredicate predicate)
Returns a Linkable.Double that wraps this Linkable.Double and filters values using the provided predicate function.void
link(DoubleConsumer consumer)
Link to a Consumer to process values.default Linkable.Double
map(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 Detail
-
link
void link(DoubleConsumer consumer)
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
default Linkable.Double map(DoubleUnaryOperator function)
Returns a Linkable.Double that wraps this Linkable.Double and transforms values using the provided mapping function.- Parameters:
function
- transform values- Returns:
-
mapTo
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.- Type Parameters:
R
- generic type of returned Linkable- Parameters:
function
- transform values- Returns:
- Linkable
-
filter
default Linkable.Double filter(DoublePredicate predicate)
Returns a Linkable.Double that wraps this Linkable.Double and filters values using the provided predicate function.- Parameters:
predicate
-- Returns:
-
-