Class CommandExec


  • public class CommandExec
    extends java.lang.Object
    A Command instance and its arguments.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandExec​(@Nullable Command command, @NotNull java.lang.String args)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(@Nullable java.lang.Object obj)  
      @NotNull java.lang.String getArgs()
      Returns the command arguments.
      @Nullable Command getCommand()
      Returns the command to execute or null to execute as "ncom".
      int hashCode()  
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CommandExec

        public CommandExec​(@Nullable
                           @Nullable Command command,
                           @NotNull
                           @NotNull java.lang.String args)
        Creates a new instance.
        Parameters:
        command - the command to execute or null to send as "ncom"
        args - the command arguments
    • Method Detail

      • getCommand

        @Nullable
        public @Nullable Command getCommand()
        Returns the command to execute or null to execute as "ncom".
        Returns:
        the command or null
      • getArgs

        @NotNull
        public @NotNull java.lang.String getArgs()
        Returns the command arguments.
        Returns:
        the command arguments
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(@Nullable
                              @Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object