Interface StreamableConverter<T,R>
- Type Parameters:
T- the upstream typeR- the output type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Convenience interface and callback used by the
Streamable.to(StreamableConverter) operator to turn an Streamable into another
value fluently.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionapply(@NonNull Streamable<@NonNull T> upstream) Applies a function to the upstreamStreamableand returns a converted value of typeR.
-
Method Details
-
apply
Applies a function to the upstreamStreamableand returns a converted value of typeR.- Parameters:
upstream- the upstreamStreamableinstance- Returns:
- the converted value
-