C
- The type of the Command.public interface CommandRegistry<C extends Command> extends DynamicRegistry<C>, SizeConstrainedRegistry
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the registry.
|
List<C> |
getCommandHistory()
Returns the registered commands, can be composite commands as well.
|
C |
peek()
Peek the command from the registry.
|
C |
pop()
Peek and remove the command from the registry.
|
void |
register(C command)
Registers a single or more than one command/s.
|
remove
contains, isEmpty
setMaxSize
void register(C command)
register
in interface DynamicRegistry<C extends Command>
C peek()
C pop()
List<C> getCommandHistory()
void clear()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.