public class CommandExec
extends java.lang.Object
Command
instance and its arguments.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
args
The command arguments.
|
private Command |
command
The command to execute or
null to send as "ncom". |
Constructor and Description |
---|
CommandExec(Command command,
java.lang.String args)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArgs()
Returns the command arguments.
|
Command |
getCommand()
Returns the command to execute or
null to execute as "ncom". |
int |
hashCode() |
java.lang.String |
toString() |
@NotNull private final java.lang.String args
@Nullable private final Command command
null
to send as "ncom".public CommandExec(@Nullable Command command, @NotNull java.lang.String args)
command
- the command to execute or null
to send as "ncom"args
- the command argumentspublic boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
@NotNull public java.lang.String getArgs()
@Nullable public Command getCommand()
null
to execute as "ncom".null
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String toString()
toString
in class java.lang.Object