diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-04-10 16:40:33 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-04-10 16:40:33 -0400 |
| commit | 889fac2bdf993dc86f64a8893c0260fdcf848acb (patch) | |
| tree | 99ed08552efa86fdc5fdf4ddb8720d10e599fafe /BJC-Utils2/src/main/java/bjc/utils/cli/CommandMode.java | |
| parent | 1656b02144446aeedebb3d1179e07ed99c01861c (diff) | |
Cleanup
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/CommandMode.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/cli/CommandMode.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/CommandMode.java b/BJC-Utils2/src/main/java/bjc/utils/cli/CommandMode.java index d26b176..39c72fc 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/cli/CommandMode.java +++ b/BJC-Utils2/src/main/java/bjc/utils/cli/CommandMode.java @@ -16,7 +16,7 @@ public interface CommandMode extends Comparable<CommandMode> { * @return Whether or not this mode can handle the command. It is * assumed not by default */ - default boolean canHandle(String command) { + default boolean canHandle(final String command) { return false; }; @@ -61,12 +61,12 @@ public interface CommandMode extends Comparable<CommandMode> { * @return The command mode to use for the next command. Defaults to * returning this, and doing nothing else */ - default CommandMode process(String command, String[] args) { + default CommandMode process(final String command, final String[] args) { return this; } @Override - default int compareTo(CommandMode o) { + default int compareTo(final CommandMode o) { return getName().compareTo(o.getName()); } } |
