Class CommandResult


  • public class CommandResult
    extends java.lang.Object
    It contains the results of executing the command.

    Created: 2019-01-19

    • Constructor Summary

      Constructors 
      Constructor Description
      CommandResult​(boolean success, java.lang.String message)
      Creates a new instance of the command result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      boolean isSuccess()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandResult

        public CommandResult​(boolean success,
                             java.lang.String message)
        Creates a new instance of the command result.
        Parameters:
        success - whether the command executed successfully
        message - the message output to the console as a result of an executed command
    • Method Detail

      • isSuccess

        public boolean isSuccess()
      • getMessage

        public java.lang.String getMessage()