public class ImmutableCommandMapping extends Object implements CommandMapping
| Constructor and Description |
|---|
ImmutableCommandMapping(CommandCallable callable,
String... alias)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllAliases()
Get a list of all aliases.
|
CommandCallable |
getCallable()
Get the callable
|
Description |
getDescription()
Get the
Description form the callable. |
String |
getPrimaryAlias()
Get the primary alias.
|
String |
toString() |
public ImmutableCommandMapping(CommandCallable callable, String... alias)
callable - the command callablealias - a list of all aliases, where the first one is the primary onepublic String getPrimaryAlias()
CommandMappinggetPrimaryAlias in interface CommandMappingpublic String[] getAllAliases()
CommandMappinggetAllAliases in interface CommandMappingpublic CommandCallable getCallable()
CommandMappinggetCallable in interface CommandMappingpublic Description getDescription()
CommandMappingDescription form the callable.getDescription in interface CommandMappingCopyright © 2015. All Rights Reserved.