22 package com.realtime.crossfire.jxclient.commands;
24 import org.jetbrains.annotations.NotNull;
25 import org.jetbrains.annotations.Nullable;
78 return (command == null ? 0 : command.hashCode())+args.hashCode();
85 public boolean equals(@Nullable
final Object obj) {
86 if (obj == null || obj.getClass() != getClass()) {
99 return command+
"/"+
args;
Implements a client-side command.
Command getCommand()
Returns the command to execute or.
A Command instance and its arguments.
final String args
The command arguments.
boolean equals(@Nullable final Object obj)
String getArgs()
Returns the command arguments.
CommandExec(@Nullable final Command command, @NotNull final String args)
Creates a new instance.
final Command command
The command to execute or.