#
BasicCommand
The BasicCommand
was designed with inlining in mind and, as such, is easily decorated. To create a BasicCommand
, pass in a runnable to its primary constructor, or alternatively, use Command.of
.
new BasicCommand(() -> {
//Action goes here
});
Command.of(() -> {
//Action goes here
});
BasicCommand {
//Action goes here
}
Command.of {
//Action goes here
}