Interface GenericRunnable.A0

All Superinterfaces:
GenericRunnable
Enclosing interface:
GenericRunnable
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 static interface GenericRunnable.A0 extends GenericRunnable
A GenericRunnable with 0 arguments.
Since:
2.10
  • Method Details

    • run

      void run() throws Exception
      Runs this GenericRunnable.
      Throws:
      Exception
    • run

      default void run(Object... args) throws Exception
      Description copied from interface: GenericRunnable
      Runs this GenericRunnable.
      Specified by:
      run in interface GenericRunnable
      Parameters:
      args - The arguments
      Throws:
      Exception - Any exception thrown by the runnable
    • getArgumentCount

      default int getArgumentCount()
      Description copied from interface: GenericRunnable
      Returns the number of arguments this GenericRunnable accepts.
      Specified by:
      getArgumentCount in interface GenericRunnable
      Returns:
      The number of arguments