public class GroupBuilder<C> extends AbstractBuilder<CommandGroupMetadata>
Modifier and Type | Field and Description |
---|---|
protected Map<String,GroupBuilder<C>> |
subGroups |
Modifier and Type | Method and Description |
---|---|
CommandGroupMetadata |
build()
Builds the type
|
GroupBuilder<C> |
getSubGroup(String name) |
GroupBuilder<C> |
makeHidden() |
GroupBuilder<C> |
makeVisible() |
GroupBuilder<C> |
withCommand(Class<? extends C> command) |
GroupBuilder<C> |
withCommands(Class<? extends C> command,
Class<? extends C>... moreCommands) |
GroupBuilder<C> |
withCommands(Iterable<Class<? extends C>> commands) |
GroupBuilder<C> |
withDefaultCommand(Class<? extends C> defaultCommand) |
GroupBuilder<C> |
withDescription(String description) |
GroupBuilder<C> |
withHiddenState(boolean hidden) |
GroupBuilder<C> |
withSubGroup(String name) |
checkNotBlank, checkNotEmpty, checkNotNull
protected final Map<String,GroupBuilder<C>> subGroups
public GroupBuilder<C> withDescription(String description)
public GroupBuilder<C> makeHidden()
public GroupBuilder<C> makeVisible()
public GroupBuilder<C> withHiddenState(boolean hidden)
public GroupBuilder<C> withSubGroup(String name)
public GroupBuilder<C> getSubGroup(String name)
public GroupBuilder<C> withDefaultCommand(Class<? extends C> defaultCommand)
public GroupBuilder<C> withCommand(Class<? extends C> command)
public GroupBuilder<C> withCommands(Class<? extends C> command, Class<? extends C>... moreCommands)
public GroupBuilder<C> withCommands(Iterable<Class<? extends C>> commands)
public CommandGroupMetadata build()
AbstractBuilder
build
in class AbstractBuilder<CommandGroupMetadata>
Copyright © 2012–2017. All rights reserved.