Interface GenericRunnable.A2<A,B>

Type Parameters:
A - The type of the first argument
B - The type of the second argument
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.A2<A,B> extends GenericRunnable
A GenericRunnable with 2 arguments.
Since:
2.10
  • Method Details

    • run

      void run(A arg0, B arg1) throws Exception
      Runs this A2 with the given arguments.
      Parameters:
      arg0 - The first argument
      arg1 - The second argument
      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