Interface RichOp<T>

  • Type Parameters:
    T - the functional Type of the wrapped Op
    All Superinterfaces:
    GenericTyped

    public interface RichOp<T>
    extends GenericTyped
    An OpInstance with state
    Author:
    Gabriel Selzer
    • Method Detail

      • op

        default T op()
        Getter for this RichOp's raw Op instance
        Returns:
        the raw Op instance of this RichOp
      • asOpType

        T asOpType()
        Returns this RichOp as its op interface Type
        Returns:
        this RichOp as the type of its op interface
      • preprocess

        default void preprocess​(Object... inputs)
        Defines behavior performed by the Op before each execution.
        Parameters:
        inputs - the inputs to the Op's functional method
      • postprocess

        default void postprocess​(Object output)
        Defines behavior performed by the Op after each execution.
        Parameters:
        output - the output of the Op's functional method