Interface RunnableWithContext<C>

Type Parameters:
C - The context type.
All Superinterfaces:
Consumer<C>
All Known Subinterfaces:
RunnableWithContext.Ignored<C>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RunnableWithContext<C> extends Consumer<C>
A runnable like interface for use with Plans and their contexts.
The subinterface RunnableWithContext.Ignored is provided for runnables that do not need the context object.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A RunnableWithContext that ignores the context object.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(C c)
     
    void
    run(C context)
     

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • run

      void run(C context)
    • accept

      default void accept(C c)
      Specified by:
      accept in interface Consumer<C>