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 int
Returns the number of arguments thisGenericRunnable
accepts.void
run()
Runs thisGenericRunnable
.default void
Runs thisGenericRunnable
.Methods inherited from interface org.omegazero.common.event.runnable.GenericRunnable
checkArgc
-
Method Details
-
run
Runs thisGenericRunnable
.- Throws:
Exception
-
run
Description copied from interface:GenericRunnable
Runs thisGenericRunnable
.- Specified by:
run
in interfaceGenericRunnable
- Parameters:
args
- The arguments- Throws:
IllegalArgumentException
- If the number of elements inargs
does not match the value returned byGenericRunnable.getArgumentCount()
Exception
- Any exception thrown by the runnable
-
getArgumentCount
default int getArgumentCount()Description copied from interface:GenericRunnable
Returns the number of arguments thisGenericRunnable
accepts.- Specified by:
getArgumentCount
in interfaceGenericRunnable
- Returns:
- The number of arguments
-