public abstract class AbstractCommand extends Object implements Command
Command.Command.Reply| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCommand(String name,
String briefDescription)
Creates a new command with the given name and description.
|
protected |
AbstractCommand(String name,
String briefDescription,
List<String> detailedDescription)
Creates a new command with the given name, brief description and detailed
description.
|
protected |
AbstractCommand(String name,
String briefDescription,
String... detailedDescriptions)
Creates a new command with the given name, brief description and detailed
description.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBriefDescription()
Returns a brief description of this command.
|
List<String> |
getDetailedDescription()
Returns a detailed description of this command.
|
String |
getName()
Returns the name of this command.
|
protected AbstractCommand(String name, String briefDescription)
name - The name of the commandbriefDescription - The brief description of this command.protected AbstractCommand(String name, String briefDescription, String... detailedDescriptions)
name - The name of the commandbriefDescription - The brief description of this command.detailedDescriptions - The detailed descriptions of this commandprotected AbstractCommand(String name, String briefDescription, List<String> detailedDescription)
name - The name of the commandbriefDescription - The brief description of this command.detailedDescription - The detailed description of this commandpublic String getName()
public String getBriefDescription()
getBriefDescription in interface Commandpublic List<String> getDetailedDescription()
getDetailedDescription in interface CommandCopyright © 2026. All rights reserved.