Class RemoveGreaterCommand

java.lang.Object
commandManager.commands.RemoveGreaterCommand
All Implemented Interfaces:
ArgumentConsumer<Route>, BaseCommand

public class RemoveGreaterCommand extends Object implements BaseCommand, ArgumentConsumer<Route>
Removes elements from collection greater than given in argument.
Since:
1.0
  • Constructor Details

    • RemoveGreaterCommand

      public RemoveGreaterCommand()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: BaseCommand
      Base method for show command name
      Specified by:
      getName in interface BaseCommand
      Returns:
      command name
    • getDescr

      public String getDescr()
      Description copied from interface: BaseCommand
      Base method for show command description.
      Specified by:
      getDescr in interface BaseCommand
      Returns:
      command description
    • getArgs

      public String getArgs()
      Description copied from interface: BaseCommand
      Base method for show command arguments
      Specified by:
      getArgs in interface BaseCommand
      Returns:
      command arguments pattern
    • execute

      public void execute (String[] args)
      Description copied from interface: BaseCommand
      Base method for command executing.
      Specified by:
      execute in interface BaseCommand
      Parameters:
      args - full array of entered line.
    • getResponse

      public CommandStatusResponse getResponse()
      Description copied from interface: BaseCommand
      Base method for get command Output
      Specified by:
      getResponse in interface BaseCommand
      Returns:
      Full command output
    • setObj

      public void setObj (Route obj)
      Specified by:
      setObj in interface ArgumentConsumer<Route>