Interface Action

All Superinterfaces:
Runnable
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 interface Action extends Runnable
Represents a functional interface that encapsulates a single action to be performed. This interface extends Runnable, allowing implementations to be used in contexts where a Runnable is expected. This interface provides a single abstract method act() that must be implemented to define the specific action. Additionally, default implementations of run() and execute() are provided, both of which delegate their behavior to the act() method.
Author:
Syam