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 Type
    Method
    Description
    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

    arguments

    Methods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasFunction

    function

    Methods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasReturnType

    returnType

    Methods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasStreamType

    streamType

    Methods inherited from interface com.speedment.jpastreamer.pipeline.trait.HasType

    type
  • 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

      Predicate<S> 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

      Consumer<S> 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