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.
A
GenericRunnable with 0 arguments.- Since:
- 2.10
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.omegazero.common.event.runnable.GenericRunnable
GenericRunnable.A0, GenericRunnable.A1<A>, GenericRunnable.A2<A,B>, GenericRunnable.A3<A, B, C>, GenericRunnable.A4<A, B, C, D> -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the number of arguments thisGenericRunnableaccepts.voidrun()Runs thisGenericRunnable.default voidRuns thisGenericRunnable.Methods inherited from interface org.omegazero.common.event.runnable.GenericRunnable
checkArgc
-
Method Details
-
run
Runs thisGenericRunnable.- Throws:
Exception
-
run
Description copied from interface:GenericRunnableRuns thisGenericRunnable.- Specified by:
runin interfaceGenericRunnable- Parameters:
args- The arguments- Throws:
Exception- Any exception thrown by the runnable
-
getArgumentCount
default int getArgumentCount()Description copied from interface:GenericRunnableReturns the number of arguments thisGenericRunnableaccepts.- Specified by:
getArgumentCountin interfaceGenericRunnable- Returns:
- The number of arguments
-