public class OperCommand extends Command
| Constructor and Description |
|---|
OperCommand(Client client)
Constructs the command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the command.
|
OperCommand |
password(String password)
Sets the password for the command.
|
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
OperCommand |
user(String user)
Sets user for the command.
|
public OperCommand(@Nonnull Client client)
client - the clientIllegalArgumentException - if client is null@Nonnull public OperCommand user(@Nonnull String user)
user - target nickIllegalArgumentException - for invalid target@Nonnull public OperCommand password(@Nonnull String password)
password - password for the userpublic void execute()
Command@Nonnull protected ToStringer toStringer()
CommandToStringer for the command.toStringer in class CommandCopyright © 2013–2019 Kitteh. All rights reserved.