Class FunctionModule.Builder

java.lang.Object
com.calebleavell.jatui.modules.TUIModule.Builder<FunctionModule.Builder>
com.calebleavell.jatui.modules.FunctionModule.Builder
All Implemented Interfaces:
DirectedGraphNode<TUIModule.Property,TUIModule.Builder<?>,FunctionModule.Builder>
Enclosing class:
FunctionModule

public static class FunctionModule.Builder extends TUIModule.Builder<FunctionModule.Builder>
Builder for FunctionModule.

Required fields: name, function
  • Constructor Details

    • Builder

      protected Builder(String name, Supplier<?> function)
      Constructs a builder based on a provided name and Supplier
      Parameters:
      name - The unique name of the module
      function - The Supplier that will be executed when this module is built and run.
    • Builder

      protected Builder(String name, Runnable function)
      Constructs a builder based on a provided name and Runnable. Note that the Runnable will get wrapped in a Supplier that returns null
      Parameters:
      name - The unique name of the module
      function - The Runnable that will be executed when this module is built and run.
    • Builder

      protected Builder()
  • Method Details