Package org.incendo.cloud.bean
Interface CommandProperties
Defines properties used by
command beans to construct commands.-
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns an unmodifiable view of the command aliases.static @NonNull CommandPropertiesConstruct a new instancename()Returns the command name.static @NonNull CommandPropertiesConstruct a new instance
-
Method Details
-
of
Construct a new instance- Parameters:
name- the command namealiases- the command aliases- Returns:
- the created instance
-
commandProperties
static @NonNull CommandProperties commandProperties(@NonNull String name, @NonNull String @NonNull ... aliases) Construct a new instance- Parameters:
name- the command namealiases- the command aliases- Returns:
- the created instance
-
name
Returns the command name.- Returns:
- the name
-
aliases
@NonNull Collection<@NonNull String> aliases()Returns an unmodifiable view of the command aliases.- Returns:
- the command aliases
-