-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Linkable.Int
filter(IntPredicate predicate)
Returns a Linkable.Int that wraps this Linkable.Int and filters values using the provided predicate function.void
link(IntConsumer consumer)
Link to a Consumer to process values.default Linkable.Int
map(IntUnaryOperator function)
Returns a Linkable.Int that wraps this Linkable.Int and transforms values using the provided mapping function.default <R> Linkable<R>
mapTo(IntFunction<? extends R> function)
Returns a Linkable that wraps this Linkable.Int and transforms values using the provided mapping function.
-
-
-
Method Detail
-
link
void link(IntConsumer 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.Int map(IntUnaryOperator function)
Returns a Linkable.Int that wraps this Linkable.Int and transforms values using the provided mapping function.- Parameters:
function
- transform values- Returns:
-
mapTo
default <R> Linkable<R> mapTo(IntFunction<? extends R> function)
Returns a Linkable that wraps this Linkable.Int 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.Int filter(IntPredicate predicate)
Returns a Linkable.Int that wraps this Linkable.Int and filters values using the provided predicate function.- Parameters:
predicate
-- Returns:
-
-