Class MinByCreationDateCommand

java.lang.Object
commandManager.commands.MinByCreationDateCommand
All Implemented Interfaces:
BaseCommand

public class MinByCreationDateCommand extends Object implements BaseCommand
Returns element from collection with min creation date.
Since:
1.0
  • Constructor Details

    • MinByCreationDateCommand

      public MinByCreationDateCommand()
  • 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
    • 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.