Module jpastreamer.pipeline
Interface HasReturnType<R>
- All Known Subinterfaces:
IntermediateOperation<S,,R> TerminalOperation<S,R>
public interface HasReturnType<R>
-
Method Summary
Modifier and TypeMethodDescriptionReturns the return type of the operation.
-
Method Details
-
returnType
Returns the return type of the operation.Potential return types for terminating operations include:
long.class, e.g. forcount()Object.class, e.g. forcollect()void.class, e.g. forforEach()boolean.class, e.g. foranyMatch()Object[].class, e.g. fortoArray()Optional.class, e.g. forfindAny()
Return types for intermediate operations include:
Stream, e.g. formapToObj()IntStream, e.g. formapToInt()LongStream, e.g. formapToLong()DoubleStream, e.g. formapToDouble()
- Returns:
- the return type of the terminating operation
-