Interface CommandHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for simple command handlers.
-
Method Summary
Modifier and TypeMethodDescriptionhandle(CommandSource source, String[] args) Handle a command execution.
-
Method Details
-
handle
Handle a command execution.- Parameters:
source- the command sourceargs- the arguments passed to the command- Returns:
- the result of the command
-