Module jpastreamer.pipeline
Interface TerminalOperation<S extends BaseStream<?,S>,R>
- All Superinterfaces:
HasArguments,HasFunction<S,,R> HasReturnType<R>,HasStreamType<S>,HasType<TerminalOperationType>
public interface TerminalOperation<S extends BaseStream<?,S>,R>
extends HasType<TerminalOperationType>, HasStreamType<S>, HasReturnType<R>, HasArguments, HasFunction<S,R>
-
Method Summary
Modifier and TypeMethodDescriptionconsumer()Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.Methods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasArguments
argumentsMethods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasFunction
functionMethods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasReturnType
returnTypeMethods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasStreamType
streamType
-
Method Details
-
toLongFunction
ToLongFunction<S> toLongFunction()Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.- Returns:
- the function to be applied in order to execute the TerminatingOperation
- Throws:
ClassCastException- if the terminating operation does not return a long
-
toIntFunction
ToIntFunction<S> toIntFunction()Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.- Returns:
- the function to be applied in order to execute the TerminatingOperation
- Throws:
ClassCastException- if the terminating operation does not return an int
-
toDoubleFunction
ToDoubleFunction<S> toDoubleFunction()Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.- Returns:
- the function to be applied in order to execute the TerminatingOperation
- Throws:
ClassCastException- if the terminating operation does not return a double
-
predicate
Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.- Returns:
- the function to be applied in order to execute the TerminatingOperation
- Throws:
ClassCastException- if the terminating operation does not return a boolean
-
consumer
Returns a function to be applied in order to execute the TerminatingOperation on a target Stream of type S.- Returns:
- the function to be applied in order to execute the TerminatingOperation
- Throws:
ClassCastException- if the terminating operation does not return void
-