Class CommandExec
- java.lang.Object
-
- com.realtime.crossfire.jxclient.commands.CommandExec
-
public class CommandExec extends java.lang.ObjectACommandinstance 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 booleanequals(@Nullable java.lang.Object obj)@NotNull java.lang.StringgetArgs()Returns the command arguments.@Nullable CommandgetCommand()Returns the command to execute ornullto execute as "ncom".inthashCode()@NotNull java.lang.StringtoString()
-
-
-
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 ornullto send as "ncom"args- the command arguments
-
-
Method Detail
-
getCommand
@Nullable public @Nullable Command getCommand()
Returns the command to execute ornullto 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@Nullable @Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-