public class CommandHistoryFactory
extends java.lang.Object
CommandHistory
instances by name.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,CommandHistory> |
commandHistories
All defined
CommandHistory instances. |
Constructor and Description |
---|
CommandHistoryFactory() |
Modifier and Type | Method and Description |
---|---|
CommandHistory |
getCommandHistory(java.lang.String ident)
Returns a
CommandHistory instance by name. |
@NotNull private final java.util.Map<java.lang.String,CommandHistory> commandHistories
CommandHistory
instances. Maps identification string
to instance.@NotNull public CommandHistory getCommandHistory(@NotNull java.lang.String ident)
CommandHistory
instance by name. Calling this function
twice for the same name returns the same instance.ident
- the name