Interface HasFunction<S,R>

All Known Subinterfaces:
IntermediateOperation<S,R>, TerminalOperation<S,R>

public interface HasFunction<S,R>
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a function, that when applied, will convert from a source stream of type S to some result of type R.
  • Method Details

    • function

      Function<S,R> function()
      Returns a function, that when applied, will convert from a source stream of type S to some result of type R.
      Returns:
      a function, that when applied, will convert from a source stream of type S to some result of type R
      Throws:
      ClassCastException - if the operation is not applicable (e.g. a terminating operation does not have a function but perhaps a consumer