Class CommandAction

java.lang.Object
com.zenith.feature.tasks.CommandAction
All Implemented Interfaces:
Action, Closeable, AutoCloseable

@Experimental public class CommandAction extends Object implements Action
An Action that executes a command.
  • Constructor Details

    • CommandAction

      public CommandAction(String command)
  • Method Details

    • execute

      public void execute()
      Specified by:
      execute in interface Action
    • getCommand

      public String getCommand()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object