Package commandManager.commands
Class AddIfMaxCommand
java.lang.Object
commandManager.commands.AddIfMaxCommand
- All Implemented Interfaces:
ArgumentConsumer<Route>
,BaseCommand
Add element if it's value greater than max value.
- Since:
- 1.0
-
Constructor Details
-
AddIfMaxCommand
public AddIfMaxCommand()
-
-
Method Details
-
getName
Description copied from interface:BaseCommand
Base method for show command name- Specified by:
getName
in interfaceBaseCommand
- Returns:
- command name
-
getDescr
Description copied from interface:BaseCommand
Base method for show command description.- Specified by:
getDescr
in interfaceBaseCommand
- Returns:
- command description
-
getArgs
Description copied from interface:BaseCommand
Base method for show command arguments- Specified by:
getArgs
in interfaceBaseCommand
- Returns:
- command arguments pattern
-
execute
Description copied from interface:BaseCommand
Base method for command executing.- Specified by:
execute
in interfaceBaseCommand
- Parameters:
args
- full array of entered line.
-
getResponse
Description copied from interface:BaseCommand
Base method for get command Output- Specified by:
getResponse
in interfaceBaseCommand
- Returns:
- Full command output
-
setObj
- Specified by:
setObj
in interfaceArgumentConsumer<Route>
-