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