summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2017-03-26 11:30:43 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2017-03-26 11:30:43 -0400
commit98cdf435d4974f4cca8f7b4eb4026da2c88cbc4c (patch)
treece5edea29a4da719affe61afda30a50afae15e87 /BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
parentb53c1ef47c438fb1144b961d1939c37a4bfe9120 (diff)
Update
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
index ea10108..c49b4b9 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
@@ -6,16 +6,16 @@ package bjc.utils.cli;
* @author ben
*
*/
-public class GenericCommand implements ICommand {
+public class GenericCommand implements Command {
/*
* The behavior for invoking the command.
*/
- private ICommandHandler handler;
+ private CommandHandler handler;
/*
* The help for the command.
*/
- private ICommandHelp help;
+ private CommandHelp help;
/**
* Create a new generic command.
@@ -30,7 +30,7 @@ public class GenericCommand implements ICommand {
* null, in which case the description is repeated for
* the detailed help.
*/
- public GenericCommand(ICommandHandler handler, String description, String help) {
+ public GenericCommand(CommandHandler handler, String description, String help) {
if(handler == null) throw new NullPointerException("Command handler must not be null");
this.handler = handler;
@@ -43,17 +43,17 @@ public class GenericCommand implements ICommand {
}
@Override
- public ICommand aliased() {
+ public Command aliased() {
return new DelegatingCommand(this);
}
@Override
- public ICommandHandler getHandler() {
+ public CommandHandler getHandler() {
return handler;
}
@Override
- public ICommandHelp getHelp() {
+ public CommandHelp getHelp() {
return help;
}