Interface Parameter.Subcommand.Builder
- All Superinterfaces:
- AbstractBuilder<Parameter.Subcommand>,- Builder<Parameter.Subcommand,,- Parameter.Subcommand.Builder> - ResettableBuilder<Parameter.Subcommand,- Parameter.Subcommand.Builder> 
- Enclosing interface:
- Parameter.Subcommand
public static interface Parameter.Subcommand.Builder
extends Builder<Parameter.Subcommand,Parameter.Subcommand.Builder> 
- 
Method SummaryModifier and TypeMethodDescriptionSets an alias for the subcommand.build()Builds this subcommand parameter.subcommand(Command.Parameterized command) Sets theCommand.Parameterizedto execute for this subcommand.
- 
Method Details- 
addAliasSets an alias for the subcommand. This can be executed more than once.- Parameters:
- alias- The alias
- Returns:
- This builder, for chaining
 
- 
subcommandSets theCommand.Parameterizedto execute for this subcommand.- Parameters:
- command- The- Command.Parameterized
- Returns:
- This builder, for chaining.
 
- 
buildParameter.Subcommand build()Builds this subcommand parameter.An alias and the command must be set, else a IllegalStateExceptionwill be thrown.- Specified by:
- buildin interface- AbstractBuilder<Parameter.Subcommand>
- Returns:
- The Parameter.Subcommand
 
 
-