Modifier and Type | Method and 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.
|
void link(IntConsumer consumer)
consumer
- function to process received values.default Linkable.Int map(IntUnaryOperator function)
function
- transform valuesdefault <R> Linkable<R> mapTo(IntFunction<? extends R> function)
R
- generic type of returned Linkablefunction
- transform valuesdefault Linkable.Int filter(IntPredicate predicate)
predicate
-