public interface Dictionary extends Iterable<DictionaryCommand>, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCommand(BasicCommand command)
Test if a given command is present in a dictionary.
|
boolean |
containsCommand(String command,
int argumentCount)
Test if a given command is present in a dictionary
|
DictionaryCommand |
findCommand(BasicCommand command)
Find a given command in the dictionary
|
DictionaryCommand |
findCommand(String command,
int argumentCount)
Find a given command in the dictionary.
|
int |
size()
The size of the dictionary.
|
boolean containsCommand(BasicCommand command)
command - The command (or alias) to search fortrueIf the command is foundDictionaryCommand findCommand(BasicCommand command)
command - The command (or alias) to search fornull if
the command is not found.boolean containsCommand(String command, int argumentCount)
command - The command (or alias) to search forargumentCount - The number of arguments associated with the commandtrueIf the command is foundDictionaryCommand findCommand(String command, int argumentCount)
command - The command (or alias) to search forargumentCount - The number of arguments associated with the commandnull if
the command is not found.int size()
Copyright © 2014 LSST. All Rights Reserved.