Class CommandExec

java.lang.Object
com.realtime.crossfire.jxclient.commands.CommandExec

public class CommandExec extends Object
A Command instance and its arguments.
  • Constructor Details

    • CommandExec

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

    • 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 String getArgs()
      Returns the command arguments.
      Returns:
      the command arguments
    • hashCode

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

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

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